From 137e86ce01a8059d1f75d3014a033a56b877a016 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 19 Dec 2001 15:35:58 +0000 Subject: use cal_client_open_default_tasks 2001-12-19 JP Rosevear * e-summary-tasks.c (e_summary_tasks_init): use cal_client_open_default_tasks * e-summary-calendar.c (e_summary_calendar_init): use cal_client_open_default_calendar svn path=/trunk/; revision=15181 --- my-evolution/e-summary-calendar.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'my-evolution/e-summary-calendar.c') diff --git a/my-evolution/e-summary-calendar.c b/my-evolution/e-summary-calendar.c index 46afa0cf45..b76ceeb8c0 100644 --- a/my-evolution/e-summary-calendar.c +++ b/my-evolution/e-summary-calendar.c @@ -484,8 +484,6 @@ e_summary_calendar_init (ESummary *summary) CORBA_Environment ev; ESummaryCalendar *calendar; gboolean result; - char *uri; - char *default_uri; g_return_if_fail (summary != NULL); @@ -517,14 +515,7 @@ e_summary_calendar_init (ESummary *summary) gtk_signal_connect (GTK_OBJECT (calendar->client), "obj-removed", GTK_SIGNAL_FUNC (obj_changed_cb), summary); - default_uri = bonobo_config_get_string (db, "/Calendar/DefaultUri", NULL); - if (!default_uri) - uri = gnome_util_prepend_user_home ("evolution/local/Calendar/calendar.ics"); - else - uri = g_strdup (default_uri); - - result = cal_client_open_calendar (calendar->client, uri, FALSE); - g_free (uri); + result = cal_client_open_default_calendar (calendar->client, FALSE); if (result == FALSE) { g_message ("Open calendar failed"); } -- cgit