mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
filechooserwidget: Stop using gtk_drag_source_get_origin
This commit is contained in:
parent
c1c8abf275
commit
818b456f9f
@ -2000,7 +2000,7 @@ file_list_drag_data_received_cb (GObject *source,
|
||||
selection_data = gtk_drop_target_read_selection_finish (dest, result, NULL);
|
||||
|
||||
/* Allow only drags from other widgets; see bug #533891. */
|
||||
if (drag && gtk_drag_source_get_origin (gtk_drag_get_source (drag)) == widget)
|
||||
if (drag && gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (drag)) == widget)
|
||||
return;
|
||||
|
||||
/* Parse the text/uri-list string, navigate to the first one */
|
||||
|
Loading…
Reference in New Issue
Block a user