aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/modules/e-task-shell-sidebar.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/modules/e-task-shell-sidebar.c')
-rw-r--r--calendar/modules/e-task-shell-sidebar.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/modules/e-task-shell-sidebar.c b/calendar/modules/e-task-shell-sidebar.c
index 9631321edb..df6ae4eadf 100644
--- a/calendar/modules/e-task-shell-sidebar.c
+++ b/calendar/modules/e-task-shell-sidebar.c
@@ -32,6 +32,7 @@
#include "calendar/gui/e-task-list-selector.h"
#include "calendar/gui/misc.h"
+#include "e-task-shell-backend.h"
#include "e-task-shell-view.h"
#define E_TASK_SHELL_SIDEBAR_GET_PRIVATE(obj) \
@@ -334,8 +335,8 @@ task_shell_sidebar_constructed (GObject *object)
{
ETaskShellSidebarPrivate *priv;
EShellView *shell_view;
+ EShellBackend *shell_backend;
EShellSidebar *shell_sidebar;
- ETaskShellView *task_shell_view;
ESourceSelector *selector;
ESourceList *source_list;
ESource *source;
@@ -353,8 +354,10 @@ task_shell_sidebar_constructed (GObject *object)
shell_sidebar = E_SHELL_SIDEBAR (object);
shell_view = e_shell_sidebar_get_shell_view (shell_sidebar);
- task_shell_view = E_TASK_SHELL_VIEW (shell_view);
- source_list = e_task_shell_view_get_source_list (task_shell_view);
+ shell_backend = e_shell_view_get_shell_backend (shell_view);
+
+ source_list = e_task_shell_backend_get_source_list (
+ E_TASK_SHELL_BACKEND (shell_backend));
container = GTK_CONTAINER (shell_sidebar);