aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-01 21:35:43 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-01 22:08:23 +0800
commit7f914de2907effe05da229896671691edc2c959f (patch)
treeb7b2e8177802ba2bc07f3003869b85f03257acb4 /modules
parent585745a2bf46d08ff55c9c16b3dd8d83ad8cb335 (diff)
downloadgsoc2013-evolution-7f914de2907effe05da229896671691edc2c959f.tar
gsoc2013-evolution-7f914de2907effe05da229896671691edc2c959f.tar.gz
gsoc2013-evolution-7f914de2907effe05da229896671691edc2c959f.tar.bz2
gsoc2013-evolution-7f914de2907effe05da229896671691edc2c959f.tar.lz
gsoc2013-evolution-7f914de2907effe05da229896671691edc2c959f.tar.xz
gsoc2013-evolution-7f914de2907effe05da229896671691edc2c959f.tar.zst
gsoc2013-evolution-7f914de2907effe05da229896671691edc2c959f.zip
Minor efficiency tweak in memo_shell_view_model_row_appended_cb().
Call e_memo_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-memo-shell-view-private.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/calendar/e-memo-shell-view-private.c b/modules/calendar/e-memo-shell-view-private.c
index 48fe8e0574..73421854be 100644
--- a/modules/calendar/e-memo-shell-view-private.c
+++ b/modules/calendar/e-memo-shell-view-private.c
@@ -33,15 +33,13 @@ memo_shell_view_model_row_appended_cb (EMemoShellView *memo_shell_view,
{
EMemoShellSidebar *memo_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));
memo_shell_sidebar = memo_shell_view->priv->memo_shell_sidebar;
- e_memo_shell_sidebar_add_source (memo_shell_sidebar, source);
+ e_memo_shell_sidebar_add_client (memo_shell_sidebar, E_CLIENT (client));
g_object_unref (client);
}