diff options
author | Gene Z. Ragan <gzr@eazel.com> | 2000-08-09 22:58:46 +0000 |
---|---|---|
committer | Gene Ragan <gzr@src.gnome.org> | 2000-08-09 22:58:46 +0000 |
commit | 9f984d5dc484a3e00237048c36e47d596ba60d8b (patch) | |
tree | 6e6ec871fa421de7402084fd75279379e95ea7b6 /libnautilus-extensions/nautilus-link.c | |
parent | ad97b45e34e4e0cce9538bd3e3d2f0df3e29e6aa (diff) | |
download | nautilus-9f984d5dc484a3e00237048c36e47d596ba60d8b.tar.gz |
Added new API to identify file as nautilus link.
2000-08-09 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-file.c:
* libnautilus-extensions/nautilus-file.h:
(nautilus_file_is_nautilus_link):
Added new API to identify file as nautilus link.
* libnautilus-extensions/nautilus-directory-async.c:
(start_getting_activation_uris):
Call nautilus_file_is_nautilus_link and remove obsolete
call to nautilus_link_is_link_file.
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_icon_for_file):
Call nautilus_file_is_nautilus_link and remove obsolete
call to nautilus_link_is_link_file.
* libnautilus-extensions/nautilus-link.c:
* libnautilus-extensions/nautilus-link.h:
(nautilus_link_get_link_type):
New function that returns the type of link that the
link represents. Examples are home, trash and mount point.
* libnautilus-extensions/nautilus-volume-monitor.c:
(mount_device_mount), (mount_device_activate_cdrom), (eject_cdrom),
(mount_device_check_change), (add_mount_device),
(nautilus_volume_monitor_find_mount_devices), (remove_mount_link),
(nautilus_volume_monitor_is_volume_link):
Remove annoying debug code.
* src/file-manager/fm-desktop-icon-view.c:
(remove_old_mount_links):
Fixed link celanup code to use new API.
* src/file-manager/fm-icon-view.c: (get_icon_text_callback):
Call nautilus_file_is_nautilus_link and remove obsolete
call to nautilus_link_is_link_file.
Diffstat (limited to 'libnautilus-extensions/nautilus-link.c')
-rw-r--r-- | libnautilus-extensions/nautilus-link.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libnautilus-extensions/nautilus-link.c b/libnautilus-extensions/nautilus-link.c index dc51ebbb4..69ade4c64 100644 --- a/libnautilus-extensions/nautilus-link.c +++ b/libnautilus-extensions/nautilus-link.c @@ -101,13 +101,6 @@ nautilus_link_create (const char *directory_path, return TRUE; } -/* Given a NautilusFile, returns TRUE if it's known to be a link file. */ -gboolean -nautilus_link_is_link_file (NautilusFile *file) -{ - return nautilus_file_is_mime_type (file, "application/x-nautilus-link"); -} - /* Set the icon for a link file. This can only be called on local * paths, and only on files known to be link files. */ @@ -352,6 +345,15 @@ nautilus_link_get_link_uri (const char *link_file_uri) (link_file_uri, "LINK"); } +/* Returns the link type of the link file. */ +char * +nautilus_link_get_link_type (const char *path) +{ + /* FIXME: This interface requires sync. I/O. */ + return nautilus_link_get_root_property + (path, NAUTILUS_LINK); +} + /* FIXME: Caller has to know to pass in a file with a NUL character at * the end. */ |