From ddb52a5b5eb66f7839045fff2129e3581606df3d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 23 Feb 2019 00:30:32 -0500 Subject: [PATCH] drag dest: Stop using ::hierarchy-changed Use notify::root instead. --- gtk/gtkdragdest.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk/gtkdragdest.c b/gtk/gtkdragdest.c index ce6040ad2b..b2dcd78ef2 100644 --- a/gtk/gtkdragdest.c +++ b/gtk/gtkdragdest.c @@ -41,8 +41,9 @@ gtk_drag_dest_realized (GtkWidget *widget) } static void -gtk_drag_dest_hierarchy_changed (GtkWidget *widget, - GtkWidget *previous_toplevel) +gtk_drag_dest_hierarchy_changed (GtkWidget *widget, + GParamSpec *pspec, + gpointer data) { GtkWidget *toplevel = gtk_widget_get_toplevel (widget); @@ -85,7 +86,7 @@ gtk_drag_dest_set_internal (GtkWidget *widget, g_signal_connect (widget, "realize", G_CALLBACK (gtk_drag_dest_realized), site); - g_signal_connect (widget, "hierarchy-changed", + g_signal_connect (widget, "notify::root", G_CALLBACK (gtk_drag_dest_hierarchy_changed), site); g_object_set_data_full (G_OBJECT (widget), I_("gtk-drag-dest"),