From 76c3e060b79bb6fd90c8800086178b209b89c381 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 4 May 2001 14:23:42 +0000 Subject: 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 --- shell/ChangeLog | 7 +++++++ shell/e-shell-utils.c | 11 +++-------- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 1f18ddf749..d09a3cff3d 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2001-05-04 Ettore Perazzoli + + * e-shell-utils.c (get_icon_path): Don't use + `gnome_pixmap_file()', which is broken as it looks in the current + working directory first. Instead, if the path is not absolute, + just look up the file in the `EVOLUTION_IMAGES' directory. + 2001-05-03 Ettore Perazzoli * glade/e-active-connection-dialog.c: Change the GtkCList mode to 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; -- cgit v1.2.3