diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-05-20 04:11:39 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-05-20 04:11:39 +0800 |
commit | 981fe820c407fade33617e24a3ac94414b1272c8 (patch) | |
tree | f8961c4104fd7fa13b495815375ccbc760f900db | |
parent | ff547c91abf8d8c3da3ba83e0f89b9a58b2fb2fe (diff) | |
download | gsoc2013-evolution-981fe820c407fade33617e24a3ac94414b1272c8.tar.gz 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
-rw-r--r-- | e-util/e-icon-factory.c | 4 |
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); } } |