mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
drag dest: Stop using ::hierarchy-changed
Use notify::root instead.
This commit is contained in:
parent
47249431e3
commit
ddb52a5b5e
@ -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"),
|
||||||
|
Loading…
Reference in New Issue
Block a user