From 981fe820c407fade33617e24a3ac94414b1272c8 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 19 May 2004 20:11:39 +0000 Subject: doh. need to append ".png" to the icon filenames when falling back on looking for them ourselves. svn path=/trunk/; revision=25987 --- e-util/e-icon-factory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'e-util/e-icon-factory.c') 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); } } -- cgit v1.2.3