aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-08-10 17:37:40 +0800
committerMilan Crha <mcrha@redhat.com>2012-08-10 17:37:40 +0800
commit92a2ca0066a646bdf22d2eb55a03e45415f60ac9 (patch)
treeee47cbeb09b5c9a3aa6e1eff2f4808a2042e02ff /modules
parent43917f0a6deadef5dbd4c37bec8c7b245c22ce61 (diff)
downloadgsoc2013-evolution-92a2ca0066a646bdf22d2eb55a03e45415f60ac9.tar
gsoc2013-evolution-92a2ca0066a646bdf22d2eb55a03e45415f60ac9.tar.gz
gsoc2013-evolution-92a2ca0066a646bdf22d2eb55a03e45415f60ac9.tar.bz2
gsoc2013-evolution-92a2ca0066a646bdf22d2eb55a03e45415f60ac9.tar.lz
gsoc2013-evolution-92a2ca0066a646bdf22d2eb55a03e45415f60ac9.tar.xz
gsoc2013-evolution-92a2ca0066a646bdf22d2eb55a03e45415f60ac9.tar.zst
gsoc2013-evolution-92a2ca0066a646bdf22d2eb55a03e45415f60ac9.zip
Bug #676785 - Enables wrong calendar after saving appointment
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar/e-cal-shell-view-private.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c
index 0f7b0b7a17..721a8c9ba0 100644
--- a/modules/calendar/e-cal-shell-view-private.c
+++ b/modules/calendar/e-cal-shell-view-private.c
@@ -360,16 +360,15 @@ cal_shell_view_taskpad_popup_event_cb (EShellView *shell_view,
static void
cal_shell_view_user_created_cb (ECalShellView *cal_shell_view,
+ ECalClient *where_was_created,
ECalendarView *calendar_view)
{
ECalShellSidebar *cal_shell_sidebar;
- ECalModel *model;
- ECalClient *client;
ESource *source;
- model = e_calendar_view_get_model (calendar_view);
- client = e_cal_model_get_default_client (model);
- source = e_client_get_source (E_CLIENT (client));
+ g_return_if_fail (where_was_created != NULL);
+
+ source = e_client_get_source (E_CLIENT (where_was_created));
cal_shell_sidebar = cal_shell_view->priv->cal_shell_sidebar;
e_cal_shell_sidebar_add_source (cal_shell_sidebar, source);