From cdd89ef2902202c3fe535d0f24ecebc5ee93a134 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 9 Mar 2011 11:52:31 +0100 Subject: Bug #641939 - [publish-calendar] Doesn't read online state on start --- plugins/publish-calendar/publish-calendar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/publish-calendar/publish-calendar.c') diff --git a/plugins/publish-calendar/publish-calendar.c b/plugins/publish-calendar/publish-calendar.c index da9306331d..3ea3747108 100644 --- a/plugins/publish-calendar/publish-calendar.c +++ b/plugins/publish-calendar/publish-calendar.c @@ -934,8 +934,10 @@ e_plugin_lib_enable (EPlugin *ep, gint enable) if (shell) { g_signal_handlers_disconnect_by_func (shell, G_CALLBACK (online_state_changed), NULL); - if (enable) + if (enable) { + online = e_shell_get_online (shell); g_signal_connect (shell, "notify::online", G_CALLBACK (online_state_changed), NULL); + } } if (enable) { -- cgit v1.2.3