[nautilus/places-sidebar] Make the drag-action-requested signal return its drag action
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/places-sidebar] Make the drag-action-requested signal return its drag action
- Date: Wed, 27 Feb 2013 20:44:50 +0000 (UTC)
commit 8a4768ae7dc079be77fea4c3e847f77d3bfb060a
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Feb 27 14:38:24 2013 -0600
Make the drag-action-requested signal return its drag action
This is an API change in GtkPlacesSidebar
Signed-off-by: Federico Mena Quintero <federico gnome org>
src/nautilus-window.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index a1c5909..73195bd 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -617,24 +617,26 @@ build_selection_list_from_gfile_list (GList *gfile_list)
}
/* Callback used when the places sidebar needs to know the drag action to suggest */
-static void
+static GdkDragAction
places_sidebar_drag_action_requested_cb (GtkPlacesSidebar *sidebar,
GdkDragContext *context,
GFile *dest_file,
GList *source_file_list,
- int *action,
gpointer user_data)
{
GList *items;
char *uri;
+ GdkDragAction action = 0;
items = build_selection_list_from_gfile_list (source_file_list);
uri = g_file_get_uri (dest_file);
- nautilus_drag_default_drop_action_for_icons (context, uri, items, action);
+ nautilus_drag_default_drop_action_for_icons (context, uri, items, &action);
nautilus_drag_destroy_selection_list (items);
g_free (uri);
+
+ return action;
}
/* Callback used when the places sidebar needs us to pop up a menu with possible drag actions */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]