aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-17 21:02:01 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-18 02:36:38 +0800
commit30d711da21ca466697b844095a3c4ecfbb60606f (patch)
treea631dd5d22adcb52253e116aa6b4fa01b8d8618a /calendar/gui
parent2c078b30d749719a65326bd9f2cfbbf07f883407 (diff)
downloadgsoc2013-evolution-30d711da21ca466697b844095a3c4ecfbb60606f.tar
gsoc2013-evolution-30d711da21ca466697b844095a3c4ecfbb60606f.tar.gz
gsoc2013-evolution-30d711da21ca466697b844095a3c4ecfbb60606f.tar.bz2
gsoc2013-evolution-30d711da21ca466697b844095a3c4ecfbb60606f.tar.lz
gsoc2013-evolution-30d711da21ca466697b844095a3c4ecfbb60606f.tar.xz
gsoc2013-evolution-30d711da21ca466697b844095a3c4ecfbb60606f.tar.zst
gsoc2013-evolution-30d711da21ca466697b844095a3c4ecfbb60606f.zip
TaskPage: Use EClientCache to obtain an EClient.
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/task-page.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index af13c3eaf8..31f99f8c14 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -1794,7 +1794,8 @@ tpage_client_connect_cb (GObject *source_object,
CompEditor *editor;
GError *error = NULL;
- client = e_cal_client_connect_finish (result, &error);
+ client = e_client_cache_get_client_finish (
+ E_CLIENT_CACHE (source_object), result, &error);
/* Sanity check. */
g_return_if_fail (
@@ -1864,7 +1865,10 @@ source_changed_cb (ESourceComboBox *source_combo_box,
TaskPage *tpage)
{
TaskPagePrivate *priv = tpage->priv;
+ EClientCache *client_cache;
+ CompEditor *editor;
ESource *source;
+ EShell *shell;
if (comp_editor_page_get_updating (COMP_EDITOR_PAGE (tpage)))
return;
@@ -1878,8 +1882,13 @@ source_changed_cb (ESourceComboBox *source_combo_box,
}
priv->connect_cancellable = g_cancellable_new ();
- e_cal_client_connect (
- source, E_CAL_CLIENT_SOURCE_TYPE_TASKS,
+ editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (tpage));
+ shell = comp_editor_get_shell (editor);
+ client_cache = e_shell_get_client_cache (shell);
+
+ e_client_cache_get_client (
+ client_cache, source,
+ E_SOURCE_EXTENSION_TASK_LIST,
priv->connect_cancellable,
tpage_client_connect_cb, tpage);