[evolution] Move icon theme path setup from main() to EShell.
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Move icon theme path setup from main() to EShell.
- Date: Mon, 14 Dec 2009 20:47:43 +0000 (UTC)
commit baea9882fcc2c3056bf610b3df5077ddbfdee558
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Dec 14 09:26:03 2009 -0500
Move icon theme path setup from main() to EShell.
So Anjal picks it up.
shell/Makefile.am | 2 +-
shell/e-shell.c | 6 ++++++
shell/main.c | 4 ----
3 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/shell/Makefile.am b/shell/Makefile.am
index eacf65d..2dee1b2 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -46,6 +46,7 @@ libeshell_la_CPPFLAGS = \
-DEVOLUTION_DATADIR=\""$(datadir)"\" \
-DEVOLUTION_GALVIEWSDIR=\""$(viewsdir)"\" \
-DEVOLUTION_HELPDIR=\""$(evolutionhelpdir)"\" \
+ -DEVOLUTION_ICONDIR=\""$(icondir)"\" \
-DEVOLUTION_MODULEDIR=\""$(moduledir)"\" \
-DEVOLUTION_RULEDIR=\""$(privdatadir)"\" \
-DEVOLUTION_UIDIR=\""$(uidir)"\" \
@@ -111,7 +112,6 @@ evolution_CPPFLAGS = \
-DEVOLUTION_DATADIR=\""$(datadir)"\" \
-DEVOLUTION_GALVIEWSDIR=\""$(viewsdir)"\" \
-DEVOLUTION_HELPDIR=\""$(evolutionhelpdir)"\" \
- -DEVOLUTION_ICONDIR=\""$(icondir)"\" \
-DEVOLUTION_MODULEDIR=\""$(moduledir)"\" \
-DEVOLUTION_RULEDIR=\""$(privdatadir)"\" \
-DEVOLUTION_TOOLSDIR=\""$(privlibexecdir)"\" \
diff --git a/shell/e-shell.c b/shell/e-shell.c
index ebef1c0..88638b0 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -1034,6 +1034,7 @@ shell_init (EShell *shell)
{
GHashTable *backends_by_name;
GHashTable *backends_by_scheme;
+ GtkIconTheme *icon_theme;
EggSMClient *sm_client;
shell->priv = E_SHELL_GET_PRIVATE (shell);
@@ -1054,6 +1055,11 @@ shell_init (EShell *shell)
e_shell_dbus_initialize (shell);
#endif
+ /* Add our icon directory to the theme's search path
+ * here instead of in main() so Anjal picks it up. */
+ icon_theme = gtk_icon_theme_get_default ();
+ gtk_icon_theme_append_search_path (icon_theme, EVOLUTION_ICONDIR);
+
shell_parse_debug_string (shell);
g_signal_connect (
diff --git a/shell/main.c b/shell/main.c
index 81a6a81..2e8f07a 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -451,7 +451,6 @@ gint
main (gint argc, gchar **argv)
{
EShell *shell;
- GtkIconTheme *icon_theme;
GConfClient *client;
#ifdef DEVELOPMENT
gboolean skip_warning_dialog;
@@ -553,9 +552,6 @@ main (gint argc, gchar **argv)
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]