diff options
author | Alexander Larsson <alexl@redhat.com> | 2002-08-20 10:35:45 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2002-08-20 10:35:45 +0000 |
commit | 15e1c17bbe815d9aac605d10670c0a1d28f32771 (patch) | |
tree | 76d1e3a5d0676ed5a0f8f1358447ec13c4f479a1 /libnautilus-private/nautilus-link.c | |
parent | eab0a70920b903c674774f91cd89c0b407752bab (diff) | |
download | nautilus-15e1c17bbe815d9aac605d10670c0a1d28f32771.tar.gz |
New function nautilus_link_desktop_file_local_is_utf8.
2002-08-20 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-link-desktop-file.c:
* libnautilus-private/nautilus-link-desktop-file.h:
New function nautilus_link_desktop_file_local_is_utf8.
* libnautilus-private/nautilus-link.c:
* libnautilus-private/nautilus-link.h:
New function nautilus_link_local_is_utf8.
* src/file-manager/fm-desktop-icon-view.c
(update_desktop_directory):
Recreate trash and homedir links if they are not in utf8.
Diffstat (limited to 'libnautilus-private/nautilus-link.c')
-rw-r--r-- | libnautilus-private/nautilus-link.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-link.c b/libnautilus-private/nautilus-link.c index 4ac6b2a2d..eaee2f07a 100644 --- a/libnautilus-private/nautilus-link.c +++ b/libnautilus-private/nautilus-link.c @@ -233,6 +233,19 @@ nautilus_link_local_get_link_type (const char *uri, GnomeVFSFileInfo *info) } } +gboolean +nautilus_link_local_is_utf8 (const char *uri, + GnomeVFSFileInfo *info) +{ + switch (get_link_style_for_local_file (uri, info)) { + case desktop: + return nautilus_link_desktop_file_local_is_utf8 (uri); + case historical: + default: + return FALSE; + } +} + char * nautilus_link_get_link_uri_given_file_contents (const char *uri, const char *file_contents, |