[gtk/dnd-gestures-2: 111/150] 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: 111/150] testdnd: Use gtk_widget_add_controller for drag source
- Date: Tue, 7 Jan 2020 07:01:15 +0000 (UTC)
commit 09689d8a911f44f757a7f410dea44bdca9bceb4b
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]