From bf2c718d1f1ecdaf0feec0274c2b12eee57aa6bf Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 23 Apr 2012 11:44:45 +0200 Subject: Bug #655753 - Improve offline notification for network outage --- shell/e-shell.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'shell') diff --git a/shell/e-shell.c b/shell/e-shell.c index bc252845cd..7f0625afe3 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -1209,6 +1209,15 @@ e_shell_init (EShell *shell) "org.gnome.evolution.shell", "start-offline"); + e_shell_settings_install_property_for_key ( + "currently-offline", + "org.gnome.evolution.shell", + "currently-offline"); + + g_object_bind_property (shell, "online", + e_shell_get_shell_settings (shell), "currently-offline", + G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE | G_BINDING_INVERT_BOOLEAN); + /*** Session Management ***/ sm_client = egg_sm_client_get (); -- cgit v1.2.3