[gtk/dnd-gestures-2: 128/150] dragsource: Fix cancellation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 128/150] dragsource: Fix cancellation
- Date: Tue, 7 Jan 2020 07:02:40 +0000 (UTC)
commit 6afbb02377641c29c2c69698ab431e01d43cea8d
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]