drag dest: Stop using ::hierarchy-changed

Use notify::root instead.
This commit is contained in:
Matthias Clasen 2019-02-23 00:30:32 -05:00
parent 47249431e3
commit ddb52a5b5e

View File

@ -41,8 +41,9 @@ gtk_drag_dest_realized (GtkWidget *widget)
} }
static void static void
gtk_drag_dest_hierarchy_changed (GtkWidget *widget, gtk_drag_dest_hierarchy_changed (GtkWidget *widget,
GtkWidget *previous_toplevel) GParamSpec *pspec,
gpointer data)
{ {
GtkWidget *toplevel = gtk_widget_get_toplevel (widget); GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
@ -85,7 +86,7 @@ gtk_drag_dest_set_internal (GtkWidget *widget,
g_signal_connect (widget, "realize", g_signal_connect (widget, "realize",
G_CALLBACK (gtk_drag_dest_realized), site); 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_CALLBACK (gtk_drag_dest_hierarchy_changed), site);
g_object_set_data_full (G_OBJECT (widget), I_("gtk-drag-dest"), g_object_set_data_full (G_OBJECT (widget), I_("gtk-drag-dest"),