From 13ddec0274cc861d4e87a94073b6546a40ec1034 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 17 Feb 2022 11:02:35 +0100 Subject: Add a missing gtk_drag_finish() call --- src/sdgui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/sdgui.c b/src/sdgui.c index 54ef40d..2c92ac3 100644 --- a/src/sdgui.c +++ b/src/sdgui.c @@ -343,10 +343,9 @@ on_open (G_GNUC_UNUSED GtkMenuItem *item, G_GNUC_UNUSED gpointer data) } static void -on_drag_data_received (G_GNUC_UNUSED GtkWidget *widget, - G_GNUC_UNUSED GdkDragContext *context, G_GNUC_UNUSED gint x, - G_GNUC_UNUSED gint y, GtkSelectionData *data, G_GNUC_UNUSED guint info, - G_GNUC_UNUSED guint time, G_GNUC_UNUSED gpointer user_data) +on_drag_data_received (G_GNUC_UNUSED GtkWidget *widget, GdkDragContext *context, + G_GNUC_UNUSED gint x, G_GNUC_UNUSED gint y, GtkSelectionData *data, + G_GNUC_UNUSED guint info, guint time, G_GNUC_UNUSED gpointer user_data) { GError *error = NULL; gchar **dropped_uris = gtk_selection_data_get_uris (data); @@ -369,6 +368,7 @@ on_drag_data_received (G_GNUC_UNUSED GtkWidget *widget, return; g_ptr_array_free (new_dictionaries, TRUE); + gtk_drag_finish (context, error == NULL, FALSE, time); } static void -- cgit v1.2.3-70-g09d2