summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Tarricone <brian@tarricone.org>2008-09-25 10:51:33 +0000
committerBrian Tarricone <brian@tarricone.org>2008-09-25 10:51:33 +0000
commite059eea19fa55f890a4293f892333e205d342e4b (patch)
treea8322d2ee9c7c1bfa98885408a86f1a1ee32eba4 /src
parent43065a899ffafffbfb94ae69ed6da0f512ec5950 (diff)
downloadxfdesktop-e059eea19fa55f890a4293f892333e205d342e4b.tar.gz
get the custom icon and use the mime type icon as a fallback
not the other way around... this reverts a bad decision made in revision 26154 (bug 4275). (Old svn revision: 27948)
Diffstat (limited to 'src')
-rw-r--r--src/xfdesktop-file-utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xfdesktop-file-utils.c b/src/xfdesktop-file-utils.c
index dddae30b..99780b25 100644
--- a/src/xfdesktop-file-utils.c
+++ b/src/xfdesktop-file-utils.c
@@ -228,6 +228,12 @@ xfdesktop_file_utils_get_file_icon(const gchar *custom_icon_name,
if(custom_icon_name)
pix_theme = xfce_themed_icon_load(custom_icon_name, size);
+ if(!pix_theme && info) {
+ icon_name = thunar_vfs_info_get_custom_icon(info);
+ if(icon_name)
+ pix_theme = xfce_themed_icon_load(icon_name, size);
+ }
+
if(!pix_theme && info && info->mime_info) {
icon_name = thunar_vfs_mime_info_lookup_icon_name(info->mime_info,
gtk_icon_theme_get_default());
@@ -235,13 +241,7 @@ xfdesktop_file_utils_get_file_icon(const gchar *custom_icon_name,
if(icon_name)
pix_theme = xfce_themed_icon_load(icon_name, size);
}
-
- if(!pix_theme && info) {
- icon_name = thunar_vfs_info_get_custom_icon(info);
- if(icon_name)
- pix_theme = xfce_themed_icon_load(icon_name, size);
- }
-
+
if(G_LIKELY(pix_theme)) {
/* we can't edit thsese icons */
pix = gdk_pixbuf_copy(pix_theme);