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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user