[gtk/dnd-gestures-2: 109/173] testdnd: 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: 109/173] testdnd: Use gtk_widget_add_controller for drag source
- Date: Wed, 8 Jan 2020 23:58:05 +0000 (UTC)
commit 61559e38f4075eb6b6f06a3135bc5324ca4b6f0f
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 7 01:12:48 2020 -0500
testdnd: Use gtk_widget_add_controller for drag source
tests/testdnd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testdnd.c b/tests/testdnd.c
index ceefa34c5c..e2d62953b7 100644
--- a/tests/testdnd.c
+++ b/tests/testdnd.c
@@ -642,7 +642,7 @@ main (int argc, char **argv)
gtk_drag_source_set_content (source, content);
g_object_unref (content);
gtk_drag_source_set_actions (source, GDK_ACTION_COPY|GDK_ACTION_MOVE);
- gtk_drag_source_attach (source, button, GDK_BUTTON1_MASK | GDK_BUTTON3_MASK);
+ gtk_widget_add_controller (button, GTK_EVENT_CONTROLLER (source));
gtk_drag_source_set_icon (source, GDK_PAINTABLE (texture), 0, 0);
g_object_unref (texture);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]