[gtk/dnd-gestures-2: 126/173] dragsource: Fix cancellation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 126/173] dragsource: Fix cancellation
- Date: Wed, 8 Jan 2020 23:59:31 +0000 (UTC)
commit 1eefaf8b417c257bed94b4bd4b1893cfdba4822c
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 6 20:46:08 2020 -0500
dragsource: Fix cancellation
We need to properly end the drag.
gtk/gtkdragsource.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c
index e4b812846e..69a3f9da57 100644
--- a/gtk/gtkdragsource.c
+++ b/gtk/gtkdragsource.c
@@ -693,8 +693,7 @@ gtk_drag_source_drag_cancel (GtkDragSource *source)
gboolean success = FALSE;
g_signal_emit (source, signals[DRAG_CANCEL], 0, source->drag, GDK_DRAG_CANCEL_ERROR, &success);
-
- gdk_drag_drop_done (source->drag, success);
+ drag_end (source->drag, FALSE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]