diff options
author | Dave Emory Watson <dwatson@cs.ucr.edu> | 2002-03-28 04:02:48 +0000 |
---|---|---|
committer | David Emory Watson <dwatson@src.gnome.org> | 2002-03-28 04:02:48 +0000 |
commit | 371db7a380e6a485ff7220d2534ff14f6bef2368 (patch) | |
tree | cd6a9b443b1c44234f1c055c7d2b9ab44054142f /libnautilus-private/nautilus-link-desktop-file.c | |
parent | 561f65f68dc4766bcf77fb8f576d59c08ca7333c (diff) | |
download | nautilus-371db7a380e6a485ff7220d2534ff14f6bef2368.tar.gz |
Share code between different link implementations so that home directory
2002-03-27 Dave Emory Watson <dwatson@cs.ucr.edu>
* libnautilus-private/nautilus-link.c,
libnautilus-private/nautilus-link.h:
(nautilus_link_local_is_volume_link),
(nautilus_link_local_is_home_link),
(nautilus_link_local_is_trash_link),
(nautilus_link_local_is_special_link): Share code between different
link implementations so that home directory link behavior can be
controlled from one place.
* libnautilus-private/nautilus-link-desktop-file.c,
libnautilus-private/nautilus-link-desktop-file.h:
(nautilus_link_desktop_file_local_is_volume_link),
(nautilus_link_desktop_file_local_is_home_link),
(nautilus_link_desktop_file_local_is_trash_link): Remove.
* libnautilus-private/nautilus-link-historical.h,
libnautilus-private/nautilus-link-historical.c:
(nautilus_link_historical_local_is_volume_link),
(nautilus_link_historical_local_is_home_link),
(nautilus_link_historical_local_is_trash_link): Remove.
* libnautilus-private/nautilus-file-operations.c:
(is_special_link): Use nautilus_link_local_is_special_link.
src/file-manager/fm-directory-view.c:
(is_link_type_special): Remove.
(special_link_in_selection): Use nautilus_link_local_is_special_link.
* src/file-manager/fm-desktop-icon-view.c:
(update_home_link_and_delete_copies): Don't recreate the home directory
link when desktop==home.
Diffstat (limited to 'libnautilus-private/nautilus-link-desktop-file.c')
-rw-r--r-- | libnautilus-private/nautilus-link-desktop-file.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libnautilus-private/nautilus-link-desktop-file.c b/libnautilus-private/nautilus-link-desktop-file.c index 9c5777ba3..79c18ec90 100644 --- a/libnautilus-private/nautilus-link-desktop-file.c +++ b/libnautilus-private/nautilus-link-desktop-file.c @@ -237,24 +237,6 @@ nautilus_link_desktop_file_local_get_link_type (const char *path) return retval; } -gboolean -nautilus_link_desktop_file_local_is_volume_link (const char *path) -{ - return (nautilus_link_desktop_file_local_get_link_type (path) == NAUTILUS_LINK_MOUNT); -} - -gboolean -nautilus_link_desktop_file_local_is_home_link (const char *path) -{ - return (nautilus_link_desktop_file_local_get_link_type (path) == NAUTILUS_LINK_HOME); -} - -gboolean -nautilus_link_desktop_file_local_is_trash_link (const char *path) -{ - return (nautilus_link_desktop_file_local_get_link_type (path) == NAUTILUS_LINK_TRASH); -} - static char * nautilus_link_desktop_file_get_link_uri_from_desktop (GnomeDesktopItem *desktop_file) { |