summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego González <dggonz@src.gnome.org>2002-04-21 14:06:01 +0000
committerDiego González <dggonz@src.gnome.org>2002-04-21 14:06:01 +0000
commitca86288ec946bac6faf6794bb68f47b19dece3c9 (patch)
treeafa16660d656f7873b05836205db185e3b4b3620
parentac8df201d51df1ca2074f57d1ec0f22766acffd8 (diff)
downloadnautilus-ca86288ec946bac6faf6794bb68f47b19dece3c9.tar.gz
Fix icon handling for mime types
-rw-r--r--ChangeLog7
-rw-r--r--libnautilus-private/nautilus-find-icon-image.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 24b1fa02f..9fe6b733a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}