iconbrowser: Use gtk_widget_add_controller for drag source

This commit is contained in:
Matthias Clasen 2020-01-07 01:07:02 -05:00
parent 1a5dece09c
commit bf98ebcb12

View File

@ -428,7 +428,7 @@ setup_image_dnd (GtkWidget *image)
gtk_drag_source_set_content (source, content);
g_object_unref (content);
g_signal_connect (source, "drag-begin", G_CALLBACK (drag_begin), image);
gtk_drag_source_attach (source, image, GDK_BUTTON1_MASK);
gtk_widget_add_controller (image, GTK_EVENT_CONTROLLER (source));
}
static void
@ -443,7 +443,7 @@ setup_scalable_image_dnd (GtkWidget *image)
g_object_unref (content);
g_signal_connect (source, "drag-begin", G_CALLBACK (drag_begin), image);
gtk_drag_source_attach (source, image, GDK_BUTTON1_MASK);
gtk_widget_add_controller (image, GTK_EVENT_CONTROLLER (source));
}
static void