From ed0347eacebd893fc25221d55fa3040b4248ce2e Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 17 Sep 2001 22:24:29 +0000 Subject: Do not call calendar_config_init() here. 2001-09-17 Federico Mena Quintero * gui/component-factory.c (owner_set_cb): Do not call calendar_config_init() here. * gui/main.c (main): Call calendar_config_init() here. svn path=/trunk/; revision=12916 --- calendar/gui/calendar-component.c | 3 --- calendar/gui/component-factory.c | 3 --- calendar/gui/main.c | 2 ++ 3 files changed, 2 insertions(+), 6 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index 5954cf88d9..786aa70003 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -52,7 +52,6 @@ #define CREATE_EVENT_ID "event" #define CREATE_TASK_ID "task" -static BonoboGenericFactory *factory = NULL; char *evolution_dir; static const EvolutionShellComponentFolderType folder_types[] = { @@ -335,8 +334,6 @@ owner_set_cb (EvolutionShellComponent *shell_component, evolution_dir = g_strdup (evolution_homedir); - calendar_config_init (); - if (!migrated) { tasks_migrate (); migrated = TRUE; diff --git a/calendar/gui/component-factory.c b/calendar/gui/component-factory.c index 5954cf88d9..786aa70003 100644 --- a/calendar/gui/component-factory.c +++ b/calendar/gui/component-factory.c @@ -52,7 +52,6 @@ #define CREATE_EVENT_ID "event" #define CREATE_TASK_ID "task" -static BonoboGenericFactory *factory = NULL; char *evolution_dir; static const EvolutionShellComponentFolderType folder_types[] = { @@ -335,8 +334,6 @@ owner_set_cb (EvolutionShellComponent *shell_component, evolution_dir = g_strdup (evolution_homedir); - calendar_config_init (); - if (!migrated) { tasks_migrate (); migrated = TRUE; diff --git a/calendar/gui/main.c b/calendar/gui/main.c index 179f874173..56b8550621 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/main.c @@ -115,6 +115,8 @@ main (int argc, char **argv) G_LOG_LEVEL_WARNING); #endif + calendar_config_init (); + control_factory_init (); component_factory_init (); itip_control_factory_init (); -- cgit v1.2.3