• Federico Mena Quintero's avatar
    Fixes bug #322957: · c5b2c29f
    Federico Mena Quintero authored
    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.
    c5b2c29f
Name
Last commit
Last update
components/services/nautilus-dependent-shared Loading commit data...
cut-n-paste-code Loading commit data...
data Loading commit data...
docs Loading commit data...
icons Loading commit data...
libnautilus-extension Loading commit data...
libnautilus-private Loading commit data...
po Loading commit data...
src Loading commit data...
test Loading commit data...
.cvsignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING-DOCS Loading commit data...
COPYING.LIB Loading commit data...
CVSVERSION Loading commit data...
ChangeLog Loading commit data...
ChangeLog-20000414 Loading commit data...
ChangeLog-20000625 Loading commit data...
ChangeLog-20000831 Loading commit data...
ChangeLog-20001018 Loading commit data...
ChangeLog-20010201 Loading commit data...
ChangeLog-20010420 Loading commit data...
ChangeLog-20041029 Loading commit data...
HACKING Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
Makefile.shared Loading commit data...
NEWS Loading commit data...
README Loading commit data...
RENAMING Loading commit data...
THANKS Loading commit data...
TODO Loading commit data...
acconfig.h Loading commit data...
add-include-prefix Loading commit data...
autogen.sh Loading commit data...
check-FIXME.pl Loading commit data...
check-POTFILES.pl Loading commit data...
check-THANKS.pl Loading commit data...
check-config-h.pl Loading commit data...
check-headers-in-Makefile.pl Loading commit data...
check-strings-functions Loading commit data...
check-strings-patterns Loading commit data...
check-strings.pl Loading commit data...
configure.in Loading commit data...
indent.sh Loading commit data...
nautilus-computer.desktop.in Loading commit data...
nautilus-file-management-properties.desktop.in Loading commit data...
nautilus-folder-handler.desktop.in Loading commit data...
nautilus-home.desktop.in Loading commit data...
nautilus.desktop.in Loading commit data...
nautilus.spec.in Loading commit data...