From da871f9ad34ad978ec92e2fc10aa2505248ac14e Mon Sep 17 00:00:00 2001 From: Jeff Cai Date: Sat, 4 Mar 2006 11:25:18 +0000 Subject: Fixes #333234 Initialize calendar to ensure gconf_client is valid. 2006-03-04 Jeff Cai Fixes #333234 * gui/calendar-config.c: (calendar_config_get_primary_tasks), (calendar_config_get_primary_memos): Initialize calendar to ensure gconf_client is valid. svn path=/trunk/; revision=31641 --- calendar/gui/calendar-config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'calendar/gui/calendar-config.c') diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index c3af59e82f..b93e589194 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -728,6 +728,8 @@ calendar_config_add_notification_tasks_selected (GConfClientNotifyFunc func, gpo char * calendar_config_get_primary_tasks (void) { + calendar_config_init (); + return gconf_client_get_string (config, CALENDAR_CONFIG_PRIMARY_TASKS, NULL); } @@ -790,6 +792,8 @@ calendar_config_add_notification_memos_selected (GConfClientNotifyFunc func, gpo char * calendar_config_get_primary_memos (void) { + calendar_config_init (); + return gconf_client_get_string (config, CALENDAR_CONFIG_PRIMARY_MEMOS, NULL); } -- cgit