[gtk/dnd-gestures-2: 205/242] filechooserwidget: Stop using gtk_drag_source_get_origin
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 205/242] filechooserwidget: Stop using gtk_drag_source_get_origin
- Date: Tue, 7 Jan 2020 20:00:37 +0000 (UTC)
commit 4d1172418f029cc565c6a18824128d15168d6461
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 6 19:54:52 2020 -0500
filechooserwidget: Stop using gtk_drag_source_get_origin
gtk/gtkfilechooserwidget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 8962b872d9..1dc319e094 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]