summaryrefslogtreecommitdiff
path: root/gtk/gtkstackswitcher.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-06 00:12:21 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-01-08 18:48:21 -0500
commite9067ae2db95a30a714efdec22de07debe5ca12d (patch)
treed0da62fc3b411aabf939c7a78d6b1191ce0fcec8 /gtk/gtkstackswitcher.c
parentf898bee032040c17fe0282aa69cb54ef31f9d0ff (diff)
downloadgtk+-e9067ae2db95a30a714efdec22de07debe5ca12d.tar.gz
Replace gtk_drop_target_attach/detach
Since drop targets are now just event controller, gtk_widget_add/remove_controller works just fine for them.
Diffstat (limited to 'gtk/gtkstackswitcher.c')
-rw-r--r--gtk/gtkstackswitcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index b3688ab4d4..02d22dec08 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -120,7 +120,7 @@ gtk_stack_switcher_init (GtkStackSwitcher *switcher)
gdk_content_formats_unref (formats);
g_signal_connect (dest, "drag-leave", G_CALLBACK (gtk_stack_switcher_drag_leave), switcher);
g_signal_connect (dest, "drag-motion", G_CALLBACK (gtk_stack_switcher_drag_motion), switcher);
- gtk_drop_target_attach (dest, GTK_WIDGET (switcher));
+ gtk_widget_add_controller (GTK_WIDGET (switcher), GTK_EVENT_CONTROLLER (dest));
}
static void