diff options
author | Benjamin Otte <otte@redhat.com> | 2017-12-10 01:33:38 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-12-10 01:33:38 +0100 |
commit | 7a17865b22f06d65da446c4f179ea83e63874b09 (patch) | |
tree | f30bacec5a90037a96fe447a71cfd5f3bf691373 /tests/testdnd.c | |
parent | 803cbd576f6597f4b851c6f1b7ded98691525e5a (diff) | |
download | gtk+-7a17865b22f06d65da446c4f179ea83e63874b09.tar.gz |
dnd: Remove "delete" argument from gtk_drag_finish()
The argument is ignored by anything but X11.
It's treated like suggested_action == MOVE.
So do that in gtk_drag_finish(), too.
Diffstat (limited to 'tests/testdnd.c')
-rw-r--r-- | tests/testdnd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testdnd.c b/tests/testdnd.c index cbc9cd31c0..ea693e565c 100644 --- a/tests/testdnd.c +++ b/tests/testdnd.c @@ -375,11 +375,11 @@ target_drag_data_received (GtkWidget *widget, gtk_selection_data_get_format (selection_data) == 8) { g_print ("Received \"%s\" in trashcan\n", (gchar *) gtk_selection_data_get_data (selection_data)); - gtk_drag_finish (context, TRUE, FALSE, time); + gtk_drag_finish (context, TRUE, time); return; } - gtk_drag_finish (context, FALSE, FALSE, time); + gtk_drag_finish (context, FALSE, time); } void @@ -393,11 +393,11 @@ label_drag_data_received (GtkWidget *widget, gtk_selection_data_get_format (selection_data) == 8) { g_print ("Received \"%s\" in label\n", (gchar *) gtk_selection_data_get_data (selection_data)); - gtk_drag_finish (context, TRUE, FALSE, time); + gtk_drag_finish (context, TRUE, time); return; } - gtk_drag_finish (context, FALSE, FALSE, time); + gtk_drag_finish (context, FALSE, time); } void |