diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-01 21:34:30 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-01 22:08:23 +0800 |
commit | 52feeacf8d8da8ec169efbe40b4e75385a9bb7fe (patch) | |
tree | 4e3cbb43563baa6c4bc369b946328d9b539094ec /modules | |
parent | 7f914de2907effe05da229896671691edc2c959f (diff) | |
download | gsoc2013-evolution-52feeacf8d8da8ec169efbe40b4e75385a9bb7fe.tar gsoc2013-evolution-52feeacf8d8da8ec169efbe40b4e75385a9bb7fe.tar.gz gsoc2013-evolution-52feeacf8d8da8ec169efbe40b4e75385a9bb7fe.tar.bz2 gsoc2013-evolution-52feeacf8d8da8ec169efbe40b4e75385a9bb7fe.tar.lz gsoc2013-evolution-52feeacf8d8da8ec169efbe40b4e75385a9bb7fe.tar.xz gsoc2013-evolution-52feeacf8d8da8ec169efbe40b4e75385a9bb7fe.tar.zst gsoc2013-evolution-52feeacf8d8da8ec169efbe40b4e75385a9bb7fe.zip |
Minor efficiency tweak in task_shell_view_model_row_appended_cb().
Call e_task_shell_sidebar_add_client() instead of add_source().
No point asynchronously obtaining the client if we already have it.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/calendar/e-task-shell-view-private.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/calendar/e-task-shell-view-private.c b/modules/calendar/e-task-shell-view-private.c index 67f4e263c5..1fb6e4a33a 100644 --- a/modules/calendar/e-task-shell-view-private.c +++ b/modules/calendar/e-task-shell-view-private.c @@ -33,15 +33,13 @@ task_shell_view_model_row_appended_cb (ETaskShellView *task_shell_view, { ETaskShellSidebar *task_shell_sidebar; ECalClient *client; - ESource *source; /* This is the "Click to Add" handler. */ client = e_cal_model_ref_default_client (model); - source = e_client_get_source (E_CLIENT (client)); task_shell_sidebar = task_shell_view->priv->task_shell_sidebar; - e_task_shell_sidebar_add_source (task_shell_sidebar, source); + e_task_shell_sidebar_add_client (task_shell_sidebar, E_CLIENT (client)); g_object_unref (client); } |