aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-03-22 14:07:31 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-03-22 14:07:31 +0800
commitcda1baeb5b7c2cd08607629e4fd9d98fc48c5489 (patch)
treeb8516a3ea24a664312bcf97f88c518d5bef70c8f /mail/folder-browser-factory.c
parentaedb33b3af7c5c01aa220fe3ab51a111a31c8922 (diff)
downloadgsoc2013-evolution-cda1baeb5b7c2cd08607629e4fd9d98fc48c5489.tar.gz
gsoc2013-evolution-cda1baeb5b7c2cd08607629e4fd9d98fc48c5489.tar.zst
gsoc2013-evolution-cda1baeb5b7c2cd08607629e4fd9d98fc48c5489.zip
Don't fail at setting up all the toolbar icons if just one of the
icons cannot be loaded. svn path=/trunk/; revision=8880
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index 3ec1d27c0f..30766c8aa9 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -168,13 +168,10 @@ update_pixmaps (BonoboUIComponent *uic)
pixbuf = gdk_pixbuf_new_from_file (path);
if (pixbuf == NULL) {
g_warning ("Cannot load image -- %s", path);
- g_free (path);
- return;
+ } else {
+ pixcache [i].pixbuf = bonobo_ui_util_pixbuf_to_xml (pixbuf);
+ gdk_pixbuf_unref (pixbuf);
}
-
- pixcache [i].pixbuf = bonobo_ui_util_pixbuf_to_xml (pixbuf);
-
- gdk_pixbuf_unref (pixbuf);
g_free (path);
}