summaryrefslogtreecommitdiff
path: root/gtk/gtklinkbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-07 01:08:11 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-01-08 18:48:21 -0500
commitd2f7d1b1d7761d013af71265affa18a25bd0bc6c (patch)
tree83cace9b09972e30657fde2b9e68b5bb9acbdc4a /gtk/gtklinkbutton.c
parentcfa9e6da4a59994bfda1a22af1ab7f6e0ad7bc80 (diff)
downloadgtk+-d2f7d1b1d7761d013af71265affa18a25bd0bc6c.tar.gz
linkbutton: Use gtk_widget_add_controller for drag source
Diffstat (limited to 'gtk/gtklinkbutton.c')
-rw-r--r--gtk/gtklinkbutton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 5c113516c6..2621591a5e 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -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);