aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-07-24 10:24:39 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-07-24 10:24:39 +0800
commit4c43a88975bfb4cbab2eb10c9e2de31acedf0a61 (patch)
treeb205179021de8a8e0d81b3c0551d0b0ce9c4ec54 /modules
parentc9e803d8e6d16134cb7feccd5686cff00e171b2b (diff)
downloadgsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar
gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.gz
gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.bz2
gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.lz
gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.xz
gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.tar.zst
gsoc2013-evolution-4c43a88975bfb4cbab2eb10c9e2de31acedf0a61.zip
Move "user_created" signal emission to ECalendarView.
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar/e-cal-shell-view-private.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c
index f681a2c2f3..9af8e98740 100644
--- a/modules/calendar/e-cal-shell-view-private.c
+++ b/modules/calendar/e-cal-shell-view-private.c
@@ -150,6 +150,25 @@ cal_shell_view_taskpad_popup_event_cb (EShellView *shell_view,
}
static void
+cal_shell_view_user_created_cb (ECalShellView *cal_shell_view,
+ ECalendarView *calendar_view)
+{
+ ECalShellSidebar *cal_shell_sidebar;
+ ECalModel *model;
+ ECal *client;
+ ESource *source;
+
+ model = e_calendar_view_get_model (calendar_view);
+ client = e_cal_model_get_default_client (model);
+ source = e_cal_get_source (client);
+
+ cal_shell_sidebar = cal_shell_view->priv->cal_shell_sidebar;
+ e_cal_shell_sidebar_add_source (cal_shell_sidebar, source);
+
+ e_cal_model_add_client (model, client);
+}
+
+static void
cal_shell_view_load_view_collection (EShellViewClass *shell_view_class)
{
GalViewCollection *collection;
@@ -272,6 +291,9 @@ e_cal_shell_view_private_constructed (ECalShellView *cal_shell_view)
mini_calendar->calitem, (ECalendarItemGetTimeCallback)
cal_shell_view_get_current_time, cal_shell_view, NULL);
+ /* KILL-BONOBO FIXME -- Need to connect to the "user-created"
+ * signal for each ECalendarView. */
+
#if 0 /* KILL-BONOBO */
g_signal_connect_swapped (
calendar, "dates-shown-changed",