diff options
author | Iain Holmes <iain@src.gnome.org> | 2002-03-19 21:25:33 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2002-03-19 21:25:33 +0800 |
commit | 84e13e55846950db7a5ab1debebdf9e3fd977343 (patch) | |
tree | 70929a45e6c411730f4c2c40a0432e398768966b /my-evolution/component-factory.c | |
parent | 02b379173a834e87d0db9ba141e725f26c1ed1cb (diff) | |
download | gsoc2013-evolution-84e13e55846950db7a5ab1debebdf9e3fd977343.tar.gz gsoc2013-evolution-84e13e55846950db7a5ab1debebdf9e3fd977343.tar.zst gsoc2013-evolution-84e13e55846950db7a5ab1debebdf9e3fd977343.zip |
Move the preferences from a per-view setting to a global setting
svn path=/trunk/; revision=16205
Diffstat (limited to 'my-evolution/component-factory.c')
-rw-r--r-- | my-evolution/component-factory.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/my-evolution/component-factory.c b/my-evolution/component-factory.c index d194e061dc..2059df50ee 100644 --- a/my-evolution/component-factory.c +++ b/my-evolution/component-factory.c @@ -33,12 +33,14 @@ #include "e-summary-factory.h" #include "e-summary-offline-handler.h" +#include "e-summary.h" #include "component-factory.h" #include <gal/widgets/e-gui-utils.h> #define COMPONENT_ID "OAFIID:GNOME_Evolution_Summary_ShellComponent" static gint running_objects = 0; +static ESummaryPrefs *global_preferences = NULL; static const EvolutionShellComponentFolderType folder_types[] = { { "summary", "evolution-today.png", N_("Summary"), N_("Folder containing the Evolution Summary"), FALSE, NULL, NULL }, @@ -70,7 +72,7 @@ create_view (EvolutionShellComponent *shell, shell_client = evolution_shell_component_get_owner (shell); corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell_client)); control = e_summary_factory_new_control (physical_uri, corba_shell, - offline_handler); + offline_handler, global_preferences); if (!control) return EVOLUTION_SHELL_COMPONENT_NOTFOUND; @@ -118,6 +120,10 @@ create_component (void) running_objects++; + if (global_preferences == NULL) { + global_preferences = e_summary_preferences_init (); + } + shell_component = evolution_shell_component_new (folder_types, NULL, create_view, |