[gtk/kill-containers: 47/55] dialog: Remove code that doesn't work anymore



commit 6c78eeebe4aa56677edded5062c35dbebac7b812
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 ca0e67ed21..0fbb5c3be7 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]