[gtk/dnd-gestures-2: 116/150] 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: 116/150] filechooserwidget: Stop using gtk_drag_source_get_origin
- Date: Tue, 7 Jan 2020 07:01:40 +0000 (UTC)
commit 63d152d4cd5d090fab45854b888c7e1ed19f8f3f
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]