From ef8a72b471690c4f80c032ebb8a5a1c63d204269 Mon Sep 17 00:00:00 2001 From: FichteFoll Date: Thu, 26 Sep 2019 02:07:09 +0200 Subject: Allow ASK drag action Also remove DEFAULT because that's documented as "not to be used". --- dragon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dragon.c') 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); -- cgit