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).
This commit is contained in:
Alexander Larsson
2020-05-14 10:44:07 +02:00
parent 707229ce17
commit 4ce65f019e

View File

@@ -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