[gtk/dnd-gestures-2: 121/175] 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: 121/175] filechooserwidget: Stop using gtk_drag_source_get_origin
- Date: Wed, 8 Jan 2020 16:48:01 +0000 (UTC)
commit 75fce67aa6e4f06f015101b39b59a5fae4c9c257
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]