aboutsummaryrefslogtreecommitdiff
path: root/dragon.c
diff options
context:
space:
mode:
authorFichteFoll <fichtefoll2@googlemail.com>2019-09-26 02:07:09 +0200
committerMichael Homer <mwh@ecs.vuw.ac.nz>2019-11-02 12:58:18 +1300
commitef8a72b471690c4f80c032ebb8a5a1c63d204269 (patch)
treec5e6e9bad2d18289383c59f86ac72feee531b030 /dragon.c
parentAdd build target to .gitignore (diff)
downloaddragon-ef8a72b471690c4f80c032ebb8a5a1c63d204269.tar.gz
dragon-ef8a72b471690c4f80c032ebb8a5a1c63d204269.tar.bz2
dragon-ef8a72b471690c4f80c032ebb8a5a1c63d204269.zip
Allow ASK drag action
Also remove DEFAULT because that's documented as "not to be used".
Diffstat (limited to 'dragon.c')
-rw-r--r--dragon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dragon.c b/dragon.c
index afbc79e..062cbd6 100644
--- a/dragon.c
+++ b/dragon.c
@@ -144,8 +144,9 @@ GtkButton *add_button(char *label, struct draggable_thing *dragdata, int type) {
gtk_target_list_add_uri_targets(targetlist, TARGET_TYPE_URI);
else
gtk_target_list_add_text_targets(targetlist, TARGET_TYPE_TEXT);
+
gtk_drag_source_set(GTK_WIDGET(button), GDK_BUTTON1_MASK, NULL, 0,
- GDK_ACTION_DEFAULT | GDK_ACTION_LINK | GDK_ACTION_COPY);
+ GDK_ACTION_COPY | GDK_ACTION_LINK | GDK_ACTION_ASK);
gtk_drag_source_set_target_list(GTK_WIDGET(button), targetlist);
g_signal_connect(GTK_WIDGET(button), "drag-data-get",
G_CALLBACK(drag_data_get), dragdata);
bgstack15