From 84e13e55846950db7a5ab1debebdf9e3fd977343 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 19 Mar 2002 13:25:33 +0000 Subject: Move the preferences from a per-view setting to a global setting svn path=/trunk/; revision=16205 --- my-evolution/component-factory.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'my-evolution/component-factory.c') 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 #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, -- cgit v1.2.3