From f0e916f543ac1160b812b37629dda25c1a021e2b Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 10 Apr 2002 22:00:46 +0000 Subject: Fix this: Rodrigo's patch used one of the functions I just removed. :) * gui/gnome-cal.c (gnome_calendar_open): Fix this: Rodrigo's patch used one of the functions I just removed. :) svn path=/trunk/; revision=16433 --- calendar/gui/gnome-cal.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 97cbc9292a..809e3588e3 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1895,31 +1895,25 @@ gnome_calendar_open (GnomeCalendar *gcal, const char *str_uri) if (!uri) { tasks_uri = g_strdup_printf ("%s/local/Tasks/tasks.ics", evolution_dir); success = cal_client_open_calendar (priv->task_pad_client, tasks_uri, FALSE); - - add_alarms (tasks_uri); g_free (tasks_uri); } else { if (!g_strncasecmp (uri->protocol, "file", 4)) { tasks_uri = g_strdup_printf ("%s/local/Tasks/tasks.ics", evolution_dir); + success = cal_client_open_calendar (priv->task_pad_client, tasks_uri, FALSE); + g_free (tasks_uri); } else { - /* we use the default uri for tasks */ - tasks_uri = calendar_config_get_default_tasks_uri (); - if (!tasks_uri) - tasks_uri = g_strdup_printf ("%s/local/Tasks/tasks.ics", evolution_dir); + success = cal_client_open_default_tasks (priv->task_pad_client, FALSE); } - - success = cal_client_open_calendar (priv->task_pad_client, tasks_uri, FALSE); - add_alarms (tasks_uri); - g_free (tasks_uri); - } g_free (real_uri); e_uri_free (uri); - if (!success) { + if (success) + add_alarms (cal_client_get_uri (priv->task_pad_client)); + else { g_message ("gnome_calendar_open(): Could not issue the request"); return FALSE; } -- cgit v1.2.3