projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
134fca4
)
testdnd: Use gtk_widget_add_controller for drag source
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 7 Jan 2020 06:12:48 +0000
(
01:12
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 8 Jan 2020 23:48:21 +0000
(18:48 -0500)
tests/testdnd.c
patch
|
blob
|
history
diff --git
a/tests/testdnd.c
b/tests/testdnd.c
index ceefa34c5c44e4ff23410b598fab20c65f84dbed..e2d62953b7875281647356042210d56e54aed251 100644
(file)
--- 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);