mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
Oops, only show 'Connect to server' if the caller enabled it
This commit is contained in:
parent
9d8e3be6d7
commit
9b91e06513
@ -1075,6 +1075,7 @@ update_places (GtkPlacesSidebar *sidebar)
|
||||
_("Browse the contents of the network"));
|
||||
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,
|
||||
@ -1082,6 +1083,7 @@ update_places (GtkPlacesSidebar *sidebar)
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user