[gtk/kill-hierarchy-changed: 2/14] drag dest: Stop using ::hierarchy-changed
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-hierarchy-changed: 2/14] drag dest: Stop using ::hierarchy-changed
- Date: Sat, 23 Feb 2019 14:44:55 +0000 (UTC)
commit ddb52a5b5eb66f7839045fff2129e3581606df3d
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 23 00:30:32 2019 -0500
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"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]