85a86
> 	GtkWidget *popup_menu_properties;
1271a1273
> 	sidebar->popup_menu_properties = NULL;
1911a1914,1947
> static void
> properties_cb (GtkMenuItem           *item,
> 	       NautilusPlacesSidebar *sidebar)
> {
> 	GtkTreeModel *model;
> 	GtkTreePath *path;
> 	GtkTreeIter iter;
> 	GList *list;
> 	NautilusFile *file;
> 	char *uri;
> 
> 	model = gtk_tree_view_get_model (sidebar->tree_view);
> 	gtk_tree_view_get_cursor (sidebar->tree_view, &path, NULL);
> 
> 	if (!gtk_tree_model_get_iter (model, &iter, path)) {
> 		return;
> 	}
> 
> 	gtk_tree_model_get (model, &iter, PLACES_SIDEBAR_COLUMN_URI, &uri, -1);
> 
> 	if (uri != NULL) {
> 
> 		file = nautilus_file_get_by_uri (uri);
> 		list = g_list_prepend (NULL, nautilus_file_ref (file));
> 
> 		fm_properties_window_present (list, GTK_WIDGET (sidebar));
> 
> 		nautilus_file_list_free (list);
> 		g_free (uri);
> 	}
> 
> 	gtk_tree_path_free (path);
> }
> 
2046a2083,2091
> 	/* Properties menu item */
> 
> 	item = gtk_image_menu_item_new_from_stock (GTK_STOCK_PROPERTIES, NULL);
> 	sidebar->popup_menu_properties = item;
> 	g_signal_connect (item, "activate",
> 		    G_CALLBACK (properties_cb), sidebar);
> 	gtk_widget_show (item);
> 	gtk_menu_shell_append (GTK_MENU_SHELL (sidebar->popup_menu), item);
> 
