From f11f1c477dfbdbe666ad5627ad44ac95bd7c816f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 19 Nov 2009 14:49:09 -0500 Subject: Kill Evolution's icon cache once and for all. GTK+ already does this. Eliminates e_icon_factory_init() and e_icon_factory_shutdown(). --- shell/Makefile.am | 1 + shell/main.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'shell') diff --git a/shell/Makefile.am b/shell/Makefile.am index 13ab041122..541f941e58 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -111,6 +111,7 @@ evolution_CPPFLAGS = \ -DEVOLUTION_DATADIR=\""$(datadir)"\" \ -DEVOLUTION_GALVIEWSDIR=\""$(viewsdir)"\" \ -DEVOLUTION_HELPDIR=\""$(evolutionhelpdir)"\" \ + -DEVOLUTION_ICONDIR=\""$(icondir)"\" \ -DEVOLUTION_MODULEDIR=\""$(moduledir)"\" \ -DEVOLUTION_RULEDIR=\""$(privdatadir)"\" \ -DEVOLUTION_UIDIR=\""$(uidir)"\" \ diff --git a/shell/main.c b/shell/main.c index 2ef93d1247..ab82c2eded 100644 --- a/shell/main.c +++ b/shell/main.c @@ -55,7 +55,6 @@ #include "e-util/e-bconf-map.h" #include "e-util/e-dialog-utils.h" #include "e-util/e-error.h" -#include "e-util/e-icon-factory.h" #include "e-util/e-plugin.h" #include "e-util/e-plugin-ui.h" #include "e-util/e-profile-event.h" @@ -475,6 +474,7 @@ extern void link_shutdown (void); gint main (gint argc, gchar **argv) { + GtkIconTheme *icon_theme; GConfClient *client; #ifdef DEVELOPMENT gboolean skip_warning_dialog; @@ -574,9 +574,11 @@ main (gint argc, gchar **argv) g_warning ("Could not set up debugging output file."); } - e_icon_factory_init (); e_passwords_init (); + icon_theme = gtk_icon_theme_get_default (); + gtk_icon_theme_append_search_path (icon_theme, EVOLUTION_ICONDIR); + gtk_window_set_default_icon_name ("evolution"); if (setup_only) @@ -626,7 +628,6 @@ main (gint argc, gchar **argv) gtk_accel_map_save (e_get_accels_filename ()); - e_icon_factory_shutdown (); #ifdef G_OS_WIN32 link_shutdown (); #endif -- cgit v1.2.3