[nautilus/wip/csoriano/dnd: 10/12] list-view-dnd: fix deprecation



commit 28409a235d30596fc8b5cd23bf9423362a101000
Author: Carlos Soriano <csoriano gnome org>
Date:   Mon Oct 5 14:01:09 2015 +0200

    list-view-dnd: fix deprecation

 src/nautilus-list-view-dnd.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-list-view-dnd.c b/src/nautilus-list-view-dnd.c
index 67dffa1..d682b3a 100644
--- a/src/nautilus-list-view-dnd.c
+++ b/src/nautilus-list-view-dnd.c
@@ -209,11 +209,13 @@ nautilus_list_view_dnd_drag_begin (NautilusListView *list_view,
                                     event->x,
                                     event->y))
         {
-          gtk_drag_begin (GTK_WIDGET (list_view->details->tree_view),
-                          source_target_list,
-                          GDK_ACTION_MOVE | GDK_ACTION_COPY | GDK_ACTION_LINK | GDK_ACTION_ASK,
-                          list_view->details->drag_button,
-                          (GdkEvent*)event);
+          gtk_drag_begin_with_coordinates (GTK_WIDGET (list_view->details->tree_view),
+                                           source_target_list,
+                                           GDK_ACTION_MOVE | GDK_ACTION_COPY | GDK_ACTION_LINK | 
GDK_ACTION_ASK,
+                                           list_view->details->drag_button,
+                                           (GdkEvent*)event,
+                                           -1,
+                                           -1);
         }
       return TRUE;
     }


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