[gtk/dnd-gestures-2: 16/30] filechooserwidget: Stop using gtk_drag_source_get_origin



commit 693eb8877a0eeedd9b15c89b956e1b47b8bb522d
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]