aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-icon-factory.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2004-04-30 22:44:39 +0800
committerDan Winship <danw@src.gnome.org>2004-04-30 22:44:39 +0800
commit448012d42619872149723008d6490497ed24618a (patch)
treedbc335f736e0605d67a790bee1c986f0acd4037f /e-util/e-icon-factory.c
parentc53adc7047817bc8ca067bb59ab6b5a1414de909 (diff)
downloadgsoc2013-evolution-448012d42619872149723008d6490497ed24618a.tar.gz
gsoc2013-evolution-448012d42619872149723008d6490497ed24618a.tar.zst
gsoc2013-evolution-448012d42619872149723008d6490497ed24618a.zip
Make this work for non-stock icons too.
* e-icon-factory.c (load_icon): Make this work for non-stock icons too. svn path=/trunk/; revision=25710
Diffstat (limited to 'e-util/e-icon-factory.c')
-rw-r--r--e-util/e-icon-factory.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/e-util/e-icon-factory.c b/e-util/e-icon-factory.c
index 1a74c34ff0..f59d5dba55 100644
--- a/e-util/e-icon-factory.c
+++ b/e-util/e-icon-factory.c
@@ -109,9 +109,11 @@ load_icon (const char *icon_name)
int size = sizes[i];
if (!(filename = gnome_icon_theme_lookup_icon (icon_theme, icon_name, size, NULL, NULL)))
- goto exception;
+ filename = g_strdup (icon_name);
unscaled = gdk_pixbuf_new_from_file (filename, NULL);
+ if (!unscaled)
+ goto exception;
pixbufs[i] = gdk_pixbuf_scale_simple (unscaled, size, size, GDK_INTERP_BILINEAR);
g_object_unref (unscaled);
g_free (filename);