mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
linkbutton: Use gtk_widget_add_controller for drag source
This commit is contained in:
parent
cfa9e6da4a
commit
d2f7d1b1d7
@ -337,7 +337,7 @@ gtk_link_button_init (GtkLinkButton *link_button)
|
||||
GTK_LINK_CONTENT (content)->link = link_button;
|
||||
gtk_drag_source_set_content (source, content);
|
||||
g_object_unref (content);
|
||||
gtk_drag_source_attach (source, GTK_WIDGET (link_button), GDK_BUTTON1_MASK);
|
||||
gtk_widget_add_controller (GTK_WIDGET (link_button), GTK_EVENT_CONTROLLER (source));
|
||||
|
||||
gesture = gtk_gesture_click_new ();
|
||||
gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (gesture), FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user