aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-icon-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2004-05-20 04:11:39 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-05-20 04:11:39 +0800
commit981fe820c407fade33617e24a3ac94414b1272c8 (patch)
treef8961c4104fd7fa13b495815375ccbc760f900db /e-util/e-icon-factory.c
parentff547c91abf8d8c3da3ba83e0f89b9a58b2fb2fe (diff)
downloadgsoc2013-evolution-981fe820c407fade33617e24a3ac94414b1272c8.tar
gsoc2013-evolution-981fe820c407fade33617e24a3ac94414b1272c8.tar.gz
gsoc2013-evolution-981fe820c407fade33617e24a3ac94414b1272c8.tar.bz2
gsoc2013-evolution-981fe820c407fade33617e24a3ac94414b1272c8.tar.lz
gsoc2013-evolution-981fe820c407fade33617e24a3ac94414b1272c8.tar.xz
gsoc2013-evolution-981fe820c407fade33617e24a3ac94414b1272c8.tar.zst
gsoc2013-evolution-981fe820c407fade33617e24a3ac94414b1272c8.zip
doh. need to append ".png" to the icon filenames when falling back on looking for them ourselves.
svn path=/trunk/; revision=25987
Diffstat (limited to 'e-util/e-icon-factory.c')
-rw-r--r--e-util/e-icon-factory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/e-util/e-icon-factory.c b/e-util/e-icon-factory.c
index 26b3a80e19..aae04818d9 100644
--- a/e-util/e-icon-factory.c
+++ b/e-util/e-icon-factory.c
@@ -125,7 +125,7 @@ load_icon (const char *icon_name, int size, int scale)
/* if the icon exists in this directory, we can [use/scale] it */
g_string_truncate (path, baselen);
- g_string_append_printf (path, "%s/%s", dent->d_name, icon_name);
+ g_string_append_printf (path, "%s/%s.png", dent->d_name, icon_name);
if ((unscaled = gdk_pixbuf_new_from_file (path->str, NULL)))
break;
}
@@ -134,7 +134,7 @@ load_icon (const char *icon_name, int size, int scale)
closedir (dir);
} else {
g_free (filename);
- filename = g_strdup_printf (EVOLUTION_ICONSDIR "/%dx%d/%s", size, size, icon_name);
+ filename = g_strdup_printf (EVOLUTION_ICONSDIR "/%dx%d/%s.png", size, size, icon_name);
unscaled = gdk_pixbuf_new_from_file (filename, NULL);
}
}