summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2013-04-21 18:20:46 -0400
committerFederico Mena Quintero <federico@gnome.org>2013-04-21 18:20:46 -0400
commit9b91e06513ce731a16c14dedd6b310677b1dedde (patch)
tree80c271e40a0267a2a34589bcaf5517afdfe44e3b
parent9d8e3be6d7bb8e8073d2957d25cfead5827e888a (diff)
downloadgtk+-9b91e06513ce731a16c14dedd6b310677b1dedde.tar.gz
Oops, only show 'Connect to server' if the caller enabled it
-rw-r--r--gtk/gtkplacessidebar.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index fd18597de3..cd8cdd6c0f 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1075,13 +1075,15 @@ update_places (GtkPlacesSidebar *sidebar)
_("Browse the contents of the network"));
g_object_unref (icon);
- icon = g_themed_icon_new (ICON_NAME_NETWORK_SERVER);
- add_place (sidebar, PLACES_CONNECT_TO_SERVER,
- SECTION_NETWORK,
- _("Connect to Server"), icon, NULL,
- NULL, NULL, NULL, 0,
- _("Connect to a network server address"));
- g_object_unref (icon);
+ if (sidebar->show_connect_to_server) {
+ icon = g_themed_icon_new (ICON_NAME_NETWORK_SERVER);
+ add_place (sidebar, PLACES_CONNECT_TO_SERVER,
+ SECTION_NETWORK,
+ _("Connect to Server"), icon, NULL,
+ NULL, NULL, NULL, 0,
+ _("Connect to a network server address"));
+ g_object_unref (icon);
+ }
network_volumes = g_list_reverse (network_volumes);
for (l = network_volumes; l != NULL; l = l->next) {