diff options
author | FichteFoll <fichtefoll2@googlemail.com> | 2019-09-26 02:07:09 +0200 |
---|---|---|
committer | Michael Homer <mwh@ecs.vuw.ac.nz> | 2019-11-02 12:58:18 +1300 |
commit | ef8a72b471690c4f80c032ebb8a5a1c63d204269 (patch) | |
tree | c5e6e9bad2d18289383c59f86ac72feee531b030 /dragon.c | |
parent | Add build target to .gitignore (diff) | |
download | dragon-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |