[gtk/kill-hierarchy-changed: 6/14] popover: Stop using ::hierarchy-changed



commit 9e231f6333459d29797dc26e941fdc62db8b2c9c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 23 00:48:06 2019 -0500

    popover: Stop using ::hierarchy-changed
    
    Use notify::root instead.

 gtk/gtkpopover.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index bec65410f0..cfd697a234 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1685,7 +1685,7 @@ gtk_popover_update_scrollable (GtkPopover *popover)
 
 static void
 _gtk_popover_parent_hierarchy_changed (GtkWidget  *widget,
-                                       GtkWidget  *previous_toplevel,
+                                       GParamSpec *pspec,
                                        GtkPopover *popover)
 {
   GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
@@ -1973,7 +1973,7 @@ gtk_popover_update_relative_to (GtkPopover *popover,
         GTK_WINDOW (gtk_widget_get_ancestor (priv->widget, GTK_TYPE_WINDOW));
 
       priv->hierarchy_changed_id =
-        g_signal_connect (priv->widget, "hierarchy-changed",
+        g_signal_connect (priv->widget, "notify::root",
                           G_CALLBACK (_gtk_popover_parent_hierarchy_changed),
                           popover);
       priv->size_allocate_id =


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]