From 868bb1808d6bf94344ec2e88b722d7b422c5a043 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 5 Jan 2004 17:58:18 +0000 Subject: use the ECalModel to get the client for a given URI. 2004-01-05 Rodrigo Moya * gui/e-tasks.c (e_tasks_set_default_uri): use the ECalModel to get the client for a given URI. svn path=/trunk/; revision=24046 --- calendar/ChangeLog | 5 +++++ calendar/gui/e-tasks.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 1fcc1ead2a..17376c1ad2 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2004-01-05 Rodrigo Moya + + * gui/e-tasks.c (e_tasks_set_default_uri): use the ECalModel to + get the client for a given URI. + 2004-01-04 Rodrigo Moya * gui/calendar-component.c (add_uri_for_source, diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 53922fb4df..10d180ef77 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -912,13 +912,13 @@ e_tasks_set_default_uri (ETasks *tasks, const char *str_uri) g_return_val_if_fail (str_uri != NULL, FALSE); priv = tasks->priv; - - ecal = g_hash_table_lookup (priv->clients, str_uri); + + model = e_calendar_table_get_model (E_CALENDAR_TABLE (priv->tasks_view)); + ecal = e_cal_model_get_client_for_uri (model, str_uri); if (!ecal) return FALSE; - model = e_calendar_table_get_model (E_CALENDAR_TABLE (priv->tasks_view)); - e_cal_model_set_default_client (model, ecal); + e_cal_model_set_default_client (model, ecal); return TRUE; } -- cgit v1.2.3