[evolution/gnome-3-8] EMemoShellSidebar: Update selector rows after restoring state.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-8] EMemoShellSidebar: Update selector rows after restoring state.
- Date: Mon, 10 Jun 2013 17:14:57 +0000 (UTC)
commit a926344c538b62f7ba8aa93d7679d5408f5af611
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Jun 10 12:24:14 2013 -0400
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.
(cherry picked from commit 4099d7eed5c88a5d4be4229583b676cfaf07ace4)
modules/calendar/e-memo-shell-sidebar.c | 6 ++++++
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 da331bc..ee4326a 100644
--- a/modules/calendar/e-memo-shell-sidebar.c
+++ b/modules/calendar/e-memo-shell-sidebar.c
@@ -399,6 +399,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. */
g_object_bind_property_full (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]