nautilus r14000 - in trunk: . src



Author: cosimoc
Date: Sat Mar 29 14:52:52 2008
New Revision: 14000
URL: http://svn.gnome.org/viewvc/nautilus?rev=14000&view=rev

Log:
2008-03-29  Cosimo Cecchi  <cosimoc gnome org>

	* src/nautilus-places-sidebar.c: (update_places):
	Show network servers in Places sidebar. Patch by Vincent Untz.
	(#350974).


Modified:
   trunk/ChangeLog
   trunk/src/nautilus-places-sidebar.c

Modified: trunk/src/nautilus-places-sidebar.c
==============================================================================
--- trunk/src/nautilus-places-sidebar.c	(original)
+++ trunk/src/nautilus-places-sidebar.c	Sat Mar 29 14:52:52 2008
@@ -295,6 +295,16 @@
 		gtk_tree_selection_select_iter (selection, &last_iter);
 	}
 
+ 	mount_uri = "network:///"; /* No need to strdup */
+	icon = g_themed_icon_new (NAUTILUS_ICON_NETWORK);
+	last_iter = add_place (sidebar, PLACES_BUILT_IN,
+			       _("Network"), icon,
+			       mount_uri, NULL, NULL, NULL, 0);
+	g_object_unref (icon);
+	if (strcmp (location, mount_uri) == 0) {
+		gtk_tree_selection_select_iter (selection, &last_iter);
+	}
+
 	volume_monitor = sidebar->volume_monitor;
 
 	/* first go through all connected drives */



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