From 490b776fb4fff8e9fdcacdb22d11c7883b7e88af Mon Sep 17 00:00:00 2001 From: cosimoc Date: Sat, 29 Mar 2008 14:52:52 +0000 Subject: [PATCH] 2008-03-29 Cosimo Cecchi * src/nautilus-places-sidebar.c: (update_places): Show network servers in Places sidebar. Patch by Vincent Untz. (#350974). git-svn-id: svn+ssh://svn.gnome.org/svn/nautilus/trunk@14000 eed429bf-d525-0410-875a-8b7cced7d6b9 --- ChangeLog | 6 ++++++ src/nautilus-places-sidebar.c | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 19b903ef8..0b4c46f12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-03-29 Cosimo Cecchi + * src/nautilus-places-sidebar.c: (update_places): + Show network servers in Places sidebar. Patch by Vincent Untz. + (#350974). + +2008-03-29 Cosimo Cecchi + * libnautilus-private/nautilus-icon-container.c: (nautilus_icon_container_invert_selection): * libnautilus-private/nautilus-icon-container.h: diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c index e63db3b20..cd326457d 100644 --- a/src/nautilus-places-sidebar.c +++ b/src/nautilus-places-sidebar.c @@ -295,6 +295,16 @@ update_places (NautilusPlacesSidebar *sidebar) 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 */ -- 2.11.4.GIT