aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/calendar/e-task-shell-sidebar.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/calendar/e-task-shell-sidebar.c b/modules/calendar/e-task-shell-sidebar.c
index ef767cf31c..8c9dc7d02b 100644
--- a/modules/calendar/e-task-shell-sidebar.c
+++ b/modules/calendar/e-task-shell-sidebar.c
@@ -357,7 +357,6 @@ task_shell_sidebar_restore_state_cb (EShellWindow *shell_window,
{
ETaskShellSidebarPrivate *priv;
EShell *shell;
- EShellBackend *shell_backend;
EShellSettings *shell_settings;
ESourceRegistry *registry;
ESourceSelector *selector;
@@ -368,14 +367,10 @@ task_shell_sidebar_restore_state_cb (EShellWindow *shell_window,
shell = e_shell_window_get_shell (shell_window);
shell_settings = e_shell_get_shell_settings (shell);
- shell_backend = e_shell_view_get_shell_backend (shell_view);
- g_return_if_fail (E_IS_TASK_SHELL_BACKEND (shell_backend));
-
selector = E_SOURCE_SELECTOR (priv->selector);
+ registry = e_source_selector_get_registry (selector);
model = gtk_tree_view_get_model (GTK_TREE_VIEW (selector));
- registry = e_shell_get_registry (shell);
-
g_signal_connect_swapped (
model, "row-changed",
G_CALLBACK (task_shell_sidebar_row_changed_cb),
@@ -386,6 +381,8 @@ task_shell_sidebar_restore_state_cb (EShellWindow *shell_window,
G_CALLBACK (task_shell_sidebar_primary_selection_changed_cb),
shell_sidebar);
+ /* Bind GObject properties to settings keys. */
+
g_object_bind_property_full (
shell_settings, "cal-primary-task-list",
selector, "primary-selection",