From acc4f49390ff292b9820d2f05cb0bb1ad27e2af2 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 9 Jul 2002 21:24:50 +0000 Subject: (load_icon): Ooops. Swapped the large/small pixbufs here. Also, plug a leak. svn path=/trunk/; revision=17399 --- shell/e-icon-factory.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'shell/e-icon-factory.c') diff --git a/shell/e-icon-factory.c b/shell/e-icon-factory.c index 33658a071f..aeccb8f3a6 100644 --- a/shell/e-icon-factory.c +++ b/shell/e-icon-factory.c @@ -93,18 +93,17 @@ load_icon (const char *icon_name) Icon *icon; char *path; - path = g_strconcat (EVOLUTION_IMAGES, "/", icon_name, ".png", NULL); + path = g_strconcat (EVOLUTION_IMAGES, "/", icon_name, "-mini.png", NULL); small_pixbuf = gdk_pixbuf_new_from_file (path); - if (small_pixbuf == NULL) - return NULL; g_free (path); - path = g_strconcat (EVOLUTION_IMAGES, "/", icon_name, "-mini.png", NULL); + path = g_strconcat (EVOLUTION_IMAGES, "/", icon_name, ".png", NULL); large_pixbuf = gdk_pixbuf_new_from_file (path); - if (large_pixbuf == NULL) - return NULL; g_free (path); + if (large_pixbuf == NULL || small_pixbuf == NULL) + return NULL; + icon = icon_new (icon_name, small_pixbuf, large_pixbuf); gdk_pixbuf_unref (small_pixbuf); -- cgit v1.2.3