[evolution] ETaskShellSidebar: Update selector rows after restoring state.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] ETaskShellSidebar: Update selector rows after restoring state.
- Date: Mon, 10 Jun 2013 16:45:45 +0000 (UTC)
commit decc4aa9a760b8eb54c97ce4067150ced472f70c
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Jun 10 12:28:37 2013 -0400
ETaskShellSidebar: Update selector rows after restoring state.
Call e_source_selector_update_all_rows() after connecting to the
selector tree model's "row-changed" signal. This will ensure the
appropriate ECalClients get loaded into the ECalModel.
This fixes the bug where opening a second Tasks window shows no
content until one of the sidebar items is fiddled with.
modules/calendar/e-task-shell-sidebar.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/modules/calendar/e-task-shell-sidebar.c b/modules/calendar/e-task-shell-sidebar.c
index 288e92d..c12bef7 100644
--- a/modules/calendar/e-task-shell-sidebar.c
+++ b/modules/calendar/e-task-shell-sidebar.c
@@ -435,6 +435,12 @@ task_shell_sidebar_restore_state_cb (EShellWindow *shell_window,
G_CALLBACK (task_shell_sidebar_primary_selection_changed_cb),
shell_sidebar);
+ /* This will trigger our "row-changed" signal handler for each
+ * task list source, so the appropriate ECalClients get added to
+ * the ECalModel, which will then create view objects to display
+ * the task list content. This all happens asynchronously. */
+ e_source_selector_update_all_rows (selector);
+
/* Bind GObject properties to settings keys. */
settings = g_settings_new ("org.gnome.evolution.calendar");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]