aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shortcuts.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shortcuts.c')
-rw-r--r--shell/e-shortcuts.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/shell/e-shortcuts.c b/shell/e-shortcuts.c
index da8326f9a6..dcc9383638 100644
--- a/shell/e-shortcuts.c
+++ b/shell/e-shortcuts.c
@@ -311,8 +311,6 @@ icon_callback (EShortcutBar *shortcut_bar,
EFolder *folder;
GdkPixbuf *pixbuf;
const char *type;
- const char *icon_name;
- char *icon_path;
shortcuts = E_SHORTCUTS (data);
@@ -329,26 +327,9 @@ icon_callback (EShortcutBar *shortcut_bar,
if (type == NULL)
return NULL;
- icon_name = e_folder_type_repository_get_icon_for_type (folder_type_repository, type);
- if (icon_name == NULL)
- return NULL;
-
- if (g_path_is_absolute (icon_name))
- icon_path = g_strdup (icon_name);
- else {
- icon_path = gnome_pixmap_file (icon_name);
- if (icon_path == NULL)
- icon_path = g_concat_dir_and_file (EVOLUTION_IMAGES, icon_name);
- }
-
- if (icon_path == NULL)
- return NULL;
-
- /* FIXME this sucks sucks sucks sucks. We need some caching. Probably
- it's better if EFolderTypeRepository returns a GdkPixbuf directly. */
- pixbuf = gdk_pixbuf_new_from_file (icon_path);
-
- g_free (icon_path);
+ pixbuf = e_folder_type_repository_get_icon_for_type (folder_type_repository, type);
+ if (pixbuf != NULL)
+ gdk_pixbuf_ref (pixbuf);
return pixbuf;
}
in LIB_DEPENDS to prepare the upgradeantoine2014-12-261-1/+1 * Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla intijl2014-12-091-0/+1 * Clean up plistbapt2014-10-271-2/+0 * - Add backup mirrormiwi2014-06-151-1/+3 * - Update to 3.1.0ak2014-05-313-58/+41 * - Convert gmake,bzip2 to USESmiwi2014-05-261-1/+1 * Multiple ports: reset maintainerseadler2014-05-261-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * "aaargh, quoted Makefile variables"eadler2013-03-191-1/+1 * - Fix buildmiwi2013-02-281-6/+2 * - update png to 1.5.10dinoex2012-06-011-2/+2 * - Update devel/sdl12 to 1.2.15mva2012-02-181-1/+1 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-2/+1 * = Drop MD5 supportmiwi2011-07-031-2/+0 * - Fix fetchpav2011-01-251-2/+2 * - update to 1.4.1dinoex2010-03-281-2/+2 * - Pass maintainership to submittertabthorpe2009-02-241-1/+1 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-1/+0 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-2/+2 * - Chase devel/sdl12 shlib version bumpmiwi2008-03-131-0/+1 * Update to 2.0.3lme2007-08-052-11/+9 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directorystas2006-09-201-0/+1