[gtk: 3/7] GtkDragSource: Pass return value of drag-cancel into drag_end()



commit 4ce65f019ee1b145b95784a2fbda1bbef8f4ac85
Author: Alexander Larsson <alexl redhat com>
Date:   Thu May 14 10:44:07 2020 +0200

    GtkDragSource: Pass return value of drag-cancel into drag_end()
    
    This is needed to work as the docs say (don't play fallback cancel animation
    if cancel returned TRUE to signal the drop already happened).

 gtk/gtkdragsource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c
index 1cb8674aa8..779fbefb81 100644
--- a/gtk/gtkdragsource.c
+++ b/gtk/gtkdragsource.c
@@ -436,7 +436,7 @@ gtk_drag_source_cancel_cb (GdkDrag             *drag,
   gboolean success = FALSE;
 
   g_signal_emit (source, signals[DRAG_CANCEL], 0, source->drag, reason, &success);
-  drag_end (source, FALSE);
+  drag_end (source, success);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]