[gtk/dnd-gestures-2: 216/242] filechooser: Stop using gtk_drag_source_get_drag



commit 783833d7322b1319a576b5ae44c24415ad48cc2e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 6 20:42:18 2020 -0500

    filechooser: Stop using gtk_drag_source_get_drag

 gtk/gtkfilechooserwidget.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 1dc319e094..3bba277ffc 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2044,10 +2044,10 @@ file_list_drag_drop_cb (GtkDropTarget        *dest,
 
 static void
 file_list_drag_begin_cb (GtkDragSource        *source,
+                         GdkDrag              *drag,
                          GtkFileChooserWidget *impl)
 {
   GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (impl);
-  GdkDrag *drag = gtk_drag_source_get_drag (source);
 
   gtk_places_sidebar_set_drop_targets_visible (GTK_PLACES_SIDEBAR (priv->places_sidebar), TRUE, drag);
 }
@@ -2066,10 +2066,11 @@ file_list_drag_motion_cb (GtkDropTarget        *dest,
 
 static void
 file_list_drag_end_cb (GtkDragSource        *source,
+                       GdkDrag              *drag,
+                       gboolean              delete_data,
                        GtkFileChooserWidget *impl)
 {
   GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (impl);
-  GdkDrag *drag = gtk_drag_source_get_drag (source);
 
   gtk_places_sidebar_set_drop_targets_visible (GTK_PLACES_SIDEBAR (priv->places_sidebar), FALSE, drag);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]