summaryrefslogtreecommitdiff
path: root/libnautilus-private/apps_nautilus_preferences.schemas.in
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2005-12-10 02:40:36 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2005-12-10 02:40:36 +0000
commitc5b2c29f54981bc40a6db520d33fd4c72ecc3d99 (patch)
treecd5c78c9a893c1bc98f79f2e3cc099302c76c21d /libnautilus-private/apps_nautilus_preferences.schemas.in
parent79a384cbbe3d4f28308c29c410003913d3217ec7 (diff)
downloadnautilus-c5b2c29f54981bc40a6db520d33fd4c72ecc3d99.tar.gz
Fixes bug #322957:
2005-12-09 Federico Mena Quintero <federico@ximian.com> Fixes bug #322957: Add a "Network Servers" icon on the desktop, which takes you to network:/// * libnautilus-private/nautilus-global-preferences.h (NAUTILUS_PREFERENCES_DESKTOP_NETWORK_VISIBLE): New preference name. This determines whether we show the "Network Servers" icon. * libnautilus-private/apps_nautilus_preferences.schemas.in: Add a schema for /apps/nautilus/desktop/network_visible; the default is true. * libnautilus-private/nautilus-desktop-link.h (NautilusDesktopLinkType): Add a NAUTILUS_DESKTOP_LINK_NETWORK type. * libnautilus-private/nautilus-desktop-link.c (nautilus_desktop_link_new): Support NAUTILUS_DESKTOP_LINK_NETWORK. * libnautilus-private/nautilus-desktop-link-monitor.c (NautilusDesktopLinkMonitorDetails): Added a network_link field. (nautilus_desktop_link_monitor_delete_link): Don't delete NAUTILUS_DESKTOP_LINK_NETWORK links. (update_link_visibility): New helper function. (desktop_home_visible_changed): Use update_link_visibility(), to avoid duplicated code. (desktop_computer_visible_changed): Likewise. (desktop_trash_visible_changed): Likewise. (desktop_network_visible_changed): New function. (create_link_and_add_preference): New helper function. (nautilus_desktop_link_monitor_init): Use create_link_and_add_preference() to avoid duplicated code. Also, create the network_link. (desktop_link_monitor_finalize): Unref the network_link. (remove_link_and_preference): New helper function. (desktop_link_monitor_finalize): Use remove_link_and_preference() to avoid duplicated code. Also, free the network_link. * src/file-manager/fm-icon-container.c (SortCategory): Add a SORT_NETWORK_LINK category right before SORT_MOUNT_LINK, so that the "Network Servers" icon appears before mounts. (get_sort_category): Use SORT_NETWORK_LINK as the category for NAUTILUS_DESKTOP_LINK_NETWORK.
Diffstat (limited to 'libnautilus-private/apps_nautilus_preferences.schemas.in')
-rw-r--r--libnautilus-private/apps_nautilus_preferences.schemas.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/libnautilus-private/apps_nautilus_preferences.schemas.in b/libnautilus-private/apps_nautilus_preferences.schemas.in
index 8e0dd807b..a31cee3da 100644
--- a/libnautilus-private/apps_nautilus_preferences.schemas.in
+++ b/libnautilus-private/apps_nautilus_preferences.schemas.in
@@ -810,6 +810,21 @@ most cases, this should be left alone. -->Sans 10</default>
</schema>
<schema>
+ <key>/schemas/apps/nautilus/desktop/network_visible</key>
+ <applyto>/apps/nautilus/desktop/network_visible</applyto>
+ <owner>nautilus</owner>
+ <type>bool</type>
+ <default>true</default>
+ <locale name="C">
+ <short>Network Servers icon visible on the desktop</short>
+ <long>
+ If this is set to true, an icon linking to the Network Servers view
+ will be put on the desktop.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
<key>/schemas/apps/nautilus/desktop/computer_icon_name</key>
<applyto>/apps/nautilus/desktop/computer_icon_name</applyto>
<owner>nautilus</owner>