[nautilus/places-sidebar: 4/6] Implement the show-file-properties handler for GtkPlacesSidebar



commit 43ffe2deaa36f3837b2e6db3ba91fe0454002cd6
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Oct 22 18:37:49 2012 -0500

    Implement the show-file-properties handler for GtkPlacesSidebar
    
    Signed-off-by: Federico Mena Quintero <federico gnome org>

 src/nautilus-window.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 5112d7c..a5bb82e 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -580,10 +580,16 @@ places_sidebar_location_selected_cb (GtkPlacesSidebar *sidebar,
 /* Callback used when the places sidebar needs us to show the file properties dialog */
 static void
 places_sidebar_show_file_properties_cb (GtkPlacesSidebar *sidebar,
-					GFile            *file,
+					GFile            *location,
 					gpointer          user_data)
 {
-	/* FIXME */
+	GList *list;
+	NautilusFile *file;
+
+	file = nautilus_file_get (location);
+	list = g_list_append (NULL, file);
+	nautilus_properties_window_present (list, GTK_WIDGET (sidebar), NULL);
+	nautilus_file_list_free (list);
 }
 
 /* Callback used when the places sidebar needs us to empty the trash */



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