mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
testtoolbar: Use gtk_widget_add_controller for drag source
This commit is contained in:
parent
a5ca5eb865
commit
c1029535ca
@ -622,7 +622,7 @@ main (gint argc, gchar **argv)
|
||||
gtk_drag_source_set_content (source, content);
|
||||
gtk_drag_source_set_actions (source, GDK_ACTION_MOVE);
|
||||
g_object_unref (content);
|
||||
gtk_drag_source_attach (source, button, GDK_BUTTON1_MASK);
|
||||
gtk_widget_add_controller (button, GTK_EVENT_CONTROLLER (source));
|
||||
dest = gtk_drop_target_new (targets, GDK_ACTION_MOVE);
|
||||
g_signal_connect (dest, "drag_motion", G_CALLBACK (toolbar_drag_motion), toolbar);
|
||||
g_signal_connect (dest, "drag_leave", G_CALLBACK (toolbar_drag_leave), toolbar);
|
||||
|
Loading…
Reference in New Issue
Block a user