aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-01-06 01:58:18 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-01-06 01:58:18 +0800
commit868bb1808d6bf94344ec2e88b722d7b422c5a043 (patch)
treedb897e0a0afcec48c7fd1598c7529a8890e21734 /calendar/gui
parenta01c1a99b5f2ea6082b7f5f604bdc34845c074f7 (diff)
downloadgsoc2013-evolution-868bb1808d6bf94344ec2e88b722d7b422c5a043.tar
gsoc2013-evolution-868bb1808d6bf94344ec2e88b722d7b422c5a043.tar.gz
gsoc2013-evolution-868bb1808d6bf94344ec2e88b722d7b422c5a043.tar.bz2
gsoc2013-evolution-868bb1808d6bf94344ec2e88b722d7b422c5a043.tar.lz
gsoc2013-evolution-868bb1808d6bf94344ec2e88b722d7b422c5a043.tar.xz
gsoc2013-evolution-868bb1808d6bf94344ec2e88b722d7b422c5a043.tar.zst
gsoc2013-evolution-868bb1808d6bf94344ec2e88b722d7b422c5a043.zip
use the ECalModel to get the client for a given URI.
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. svn path=/trunk/; revision=24046
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-tasks.c8
1 files changed, 4 insertions, 4 deletions
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;
}