diff options
author | Diego González <dggonz@src.gnome.org> | 2002-04-21 14:06:01 +0000 |
---|---|---|
committer | Diego González <dggonz@src.gnome.org> | 2002-04-21 14:06:01 +0000 |
commit | ca86288ec946bac6faf6794bb68f47b19dece3c9 (patch) | |
tree | afa16660d656f7873b05836205db185e3b4b3620 | |
parent | ac8df201d51df1ca2074f57d1ec0f22766acffd8 (diff) | |
download | nautilus-ca86288ec946bac6faf6794bb68f47b19dece3c9.tar.gz |
Fix icon handling for mime types
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | libnautilus-private/nautilus-find-icon-image.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2002-04-20 Diego González <diego@pemas.net> + + * libnautilus-private/nautilus-find-icon-image.c (make_full_icon_path): + if the path is not partial also check that the icon exists with the + suffix passed. With this we are able to see the correct icons when they + are given with the whole path. + 2002-04-20 Anders Carlsson <set EMAIL_ADDRESS environment variable> * libnautilus-private/nautilus-drag-window.c: diff --git a/libnautilus-private/nautilus-find-icon-image.c b/libnautilus-private/nautilus-find-icon-image.c index bcbf76872..b0ff4c694 100644 --- a/libnautilus-private/nautilus-find-icon-image.c +++ b/libnautilus-private/nautilus-find-icon-image.c @@ -56,7 +56,7 @@ make_full_icon_path (const char *path, partial_path = g_strconcat (path, suffix, NULL); - if (path[0] == '/') { + if (path[0] == '/' && g_file_test (partial_path, G_FILE_TEST_EXISTS)) { return partial_path; } |