aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-11 00:24:14 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-11 00:46:22 +0800
commit4099d7eed5c88a5d4be4229583b676cfaf07ace4 (patch)
tree108df0f16f39672fa63d97fe4f8cc5d4bd2d62cc /modules
parentb28f6f1d997c2b674c7a9917b8262cdfdeff2d95 (diff)
downloadgsoc2013-evolution-4099d7eed5c88a5d4be4229583b676cfaf07ace4.tar
gsoc2013-evolution-4099d7eed5c88a5d4be4229583b676cfaf07ace4.tar.gz
gsoc2013-evolution-4099d7eed5c88a5d4be4229583b676cfaf07ace4.tar.bz2
gsoc2013-evolution-4099d7eed5c88a5d4be4229583b676cfaf07ace4.tar.lz
gsoc2013-evolution-4099d7eed5c88a5d4be4229583b676cfaf07ace4.tar.xz
gsoc2013-evolution-4099d7eed5c88a5d4be4229583b676cfaf07ace4.tar.zst
gsoc2013-evolution-4099d7eed5c88a5d4be4229583b676cfaf07ace4.zip
EMemoShellSidebar: 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 Memos window shows no content until one of the sidebar items is fiddled with.
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar/e-memo-shell-sidebar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/calendar/e-memo-shell-sidebar.c b/modules/calendar/e-memo-shell-sidebar.c
index 47abef724e..a3ae5079ed 100644
--- a/modules/calendar/e-memo-shell-sidebar.c
+++ b/modules/calendar/e-memo-shell-sidebar.c
@@ -435,6 +435,12 @@ memo_shell_sidebar_restore_state_cb (EShellWindow *shell_window,
G_CALLBACK (memo_shell_sidebar_primary_selection_changed_cb),
shell_sidebar);
+ /* This will trigger our "row-changed" signal handler for each
+ * memo list source, so the appropriate ECalClients get added to
+ * the ECalModel, which will then create view objects to display
+ * the memo 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");