diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <rodrigo@ximian.com> + + * 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 <rodrigo@ximian.com> * 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; } |