aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-shell-view-private.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-cal-shell-view-private.c')
-rw-r--r--calendar/gui/e-cal-shell-view-private.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-shell-view-private.c b/calendar/gui/e-cal-shell-view-private.c
index 100a12b09f..2e7619cadc 100644
--- a/calendar/gui/e-cal-shell-view-private.c
+++ b/calendar/gui/e-cal-shell-view-private.c
@@ -21,10 +21,18 @@
#include "e-cal-shell-view-private.h"
void
-e_cal_shell_view_private_init (ECalShellView *cal_shell_view)
+e_cal_shell_view_private_init (ECalShellView *cal_shell_view,
+ EShellViewClass *shell_view_class)
{
ECalShellViewPrivate *priv = cal_shell_view->priv;
+ ESourceList *source_list;
+ GObject *object;
+ object = G_OBJECT (shell_view_class->type_module);
+ source_list = g_object_get_data (object, "source-list");
+ g_return_if_fail (E_IS_SOURCE_LIST (source_list));
+
+ priv->source_list = g_object_ref (source_list);
priv->calendar_actions = gtk_action_group_new ("calendars");
}
@@ -39,6 +47,8 @@ e_cal_shell_view_private_dispose (ECalShellView *cal_shell_view)
{
ECalShellViewPrivate *priv = cal_shell_view->priv;
+ DISPOSE (priv->source_list);
+
DISPOSE (priv->calendar_actions);
}