[gtk/dnd-gestures-2: 133/175] dragsource: Fix cancellation



commit 7fa972b1710d94d88bf2fd79ec519073b4ec1ff6
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]