diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-05-04 22:23:42 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-05-04 22:23:42 +0800 |
commit | 76c3e060b79bb6fd90c8800086178b209b89c381 (patch) | |
tree | 539e5adf15bca29c98c323869182c8ed9d681361 /shell/e-shell-utils.c | |
parent | 771096d3e71c7789f060e9ebf99747bb6e5e4aca (diff) | |
download | gsoc2013-evolution-76c3e060b79bb6fd90c8800086178b209b89c381.tar.gz gsoc2013-evolution-76c3e060b79bb6fd90c8800086178b209b89c381.tar.zst gsoc2013-evolution-76c3e060b79bb6fd90c8800086178b209b89c381.zip |
Change `e_shell_get_icon_path()' to only look up the Evolution image
directory instead of using `gnome_pixmap_file()' which is broken and
looks in the current working directory first. (Why?!)
svn path=/trunk/; revision=9666
Diffstat (limited to 'shell/e-shell-utils.c')
-rw-r--r-- | shell/e-shell-utils.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c index 0d7119b970..e0b12f42f8 100644 --- a/shell/e-shell-utils.c +++ b/shell/e-shell-utils.c @@ -40,15 +40,10 @@ get_icon_path (const char *icon_name) { char *icon_path; - if (g_path_is_absolute (icon_name)) { + 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); - } + else + icon_path = g_concat_dir_and_file (EVOLUTION_IMAGES, icon_name); if (g_file_exists (icon_path)) { return icon_path; |