[gtk/kill-containers: 38/45] dialog: Remove code that doesn't work anymore
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-containers: 38/45] dialog: Remove code that doesn't work anymore
- Date: Sat, 9 May 2020 13:20:09 +0000 (UTC)
commit 66dc56faac5b5c0890f86be62690bfa3fae01877
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 8 15:31:19 2020 -0400
dialog: Remove code that doesn't work anymore
When GtkContainer goes away, we don't have an
"add" signal anymore.
gtk/gtkdialog.c | 15 ---------------
1 file changed, 15 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 876f58ee14..627d06c9f9 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -404,19 +404,6 @@ update_suggested_action (GtkDialog *dialog)
}
}
-static void
-add_cb (GtkContainer *container,
- GtkWidget *widget,
- GtkDialog *dialog)
-{
- GtkDialogPrivate *priv = gtk_dialog_get_instance_private (dialog);
-
- if (priv->use_header_bar)
- g_warning ("Content added to the action area of a dialog using header bars");
-
- gtk_widget_set_visible (priv->action_box, TRUE);
-}
-
static void
gtk_dialog_constructed (GObject *object)
{
@@ -464,8 +451,6 @@ gtk_dialog_constructed (GObject *object)
update_suggested_action (dialog);
_gtk_header_bar_track_default_decoration (GTK_HEADER_BAR (priv->headerbar));
-
- g_signal_connect (priv->action_area, "add", G_CALLBACK (add_cb), dialog);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]