linkbutton: Use gtk_widget_add_controller for drag source

This commit is contained in:
Matthias Clasen 2020-01-07 01:08:11 -05:00
parent cfa9e6da4a
commit d2f7d1b1d7

View File

@ -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);