aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-11 00:19:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-11 00:46:22 +0800
commitb28f6f1d997c2b674c7a9917b8262cdfdeff2d95 (patch)
treeefd61331e11994798c04261e882e2fa2f63cdae9 /modules
parentab42fdc8c751622e3239d43e793f06e8b6703bf7 (diff)
downloadgsoc2013-evolution-b28f6f1d997c2b674c7a9917b8262cdfdeff2d95.tar
gsoc2013-evolution-b28f6f1d997c2b674c7a9917b8262cdfdeff2d95.tar.gz
gsoc2013-evolution-b28f6f1d997c2b674c7a9917b8262cdfdeff2d95.tar.bz2
gsoc2013-evolution-b28f6f1d997c2b674c7a9917b8262cdfdeff2d95.tar.lz
gsoc2013-evolution-b28f6f1d997c2b674c7a9917b8262cdfdeff2d95.tar.xz
gsoc2013-evolution-b28f6f1d997c2b674c7a9917b8262cdfdeff2d95.tar.zst
gsoc2013-evolution-b28f6f1d997c2b674c7a9917b8262cdfdeff2d95.zip
ECalShellSidebar: 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 Calendar window shows no content until one of the sidebar items is fiddled with.
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar/e-cal-shell-sidebar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/calendar/e-cal-shell-sidebar.c b/modules/calendar/e-cal-shell-sidebar.c
index 053ee968b7..bb779dab3c 100644
--- a/modules/calendar/e-cal-shell-sidebar.c
+++ b/modules/calendar/e-cal-shell-sidebar.c
@@ -437,6 +437,12 @@ cal_shell_sidebar_restore_state_cb (EShellWindow *shell_window,
G_CALLBACK (cal_shell_sidebar_primary_selection_changed_cb),
shell_sidebar);
+ /* This will trigger our "row-changed" signal handler for each
+ * calendar source, so the appropriate ECalClients get added to
+ * the ECalModel, which will then create view objects to display
+ * the calendar 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");