projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2227d2a
)
testlist3: Use gtk_widget_add_controller for drag source
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 7 Jan 2020 06:13:35 +0000
(
01:13
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 8 Jan 2020 23:48:21 +0000
(18:48 -0500)
tests/testlist3.c
patch
|
blob
|
history
diff --git
a/tests/testlist3.c
b/tests/testlist3.c
index 2180544d045842412842c345ef0b1ff8dbd29eb6..45076a73eda6ff3995dbcefdc134b4cca8b2b042 100644
(file)
--- a/
tests/testlist3.c
+++ b/
tests/testlist3.c
@@
-88,7
+88,7
@@
create_row (const gchar *text)
gtk_drag_source_set_content (source, content);
gtk_drag_source_set_actions (source, GDK_ACTION_MOVE);
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)
);
targets = gdk_content_formats_new (entries, 1);
dest = gtk_drop_target_new (targets, GDK_ACTION_MOVE);