[gtk/dnd-gestures-2: 107/150] colorswatch: Use gtk_widget_add_controller for drag source
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 107/150] colorswatch: Use gtk_widget_add_controller for drag source
- Date: Tue, 7 Jan 2020 07:00:55 +0000 (UTC)
commit 164ea0367130cffaea20a918e7db3d26c85dfff3
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 7 01:07:45 2020 -0500
colorswatch: Use gtk_widget_add_controller for drag source
gtk/gtkcolorswatch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 49b40598a8..78ed87dc8d 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -608,7 +608,7 @@ gtk_color_swatch_set_rgba (GtkColorSwatch *swatch,
g_object_unref (content);
g_signal_connect (source, "drag-begin", G_CALLBACK (gtk_color_swatch_drag_begin), swatch);
- gtk_drag_source_attach (source, GTK_WIDGET (swatch), GDK_BUTTON1_MASK | GDK_BUTTON3_MASK);
+ gtk_widget_add_controller (GTK_WIDGET (swatch), GTK_EVENT_CONTROLLER (source));
}
priv->has_color = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]