diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-01-06 00:12:21 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-01-08 18:48:21 -0500 |
commit | e9067ae2db95a30a714efdec22de07debe5ca12d (patch) | |
tree | d0da62fc3b411aabf939c7a78d6b1191ce0fcec8 /gtk/gtkexpander.c | |
parent | f898bee032040c17fe0282aa69cb54ef31f9d0ff (diff) | |
download | gtk+-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/gtkexpander.c')
-rw-r--r-- | gtk/gtkexpander.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index 5528c8416e..ac5b6034ab 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -379,7 +379,7 @@ gtk_expander_init (GtkExpander *expander) gdk_content_formats_unref (formats); g_signal_connect (dest, "drag-motion", G_CALLBACK (gtk_expander_drag_motion), expander); g_signal_connect (dest, "drag-leave", G_CALLBACK (gtk_expander_drag_leave), expander); - gtk_drop_target_attach (dest, GTK_WIDGET (expander)); + gtk_widget_add_controller (GTK_WIDGET (expander), GTK_EVENT_CONTROLLER (dest)); gesture = gtk_gesture_click_new (); gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (gesture), |