From 473f8dca644b3f9f48529daeed44de2097ee311d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 25 Aug 2009 00:09:45 -0400 Subject: Bug 511769 - Poor indication of when network is unavailable --- shell/e-shell-window-private.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'shell/e-shell-window-private.c') diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c index b011bb548f..0012b18b54 100644 --- a/shell/e-shell-window-private.c +++ b/shell/e-shell-window-private.c @@ -388,16 +388,28 @@ e_shell_window_private_constructed (EShellWindow *shell_window) G_OBJECT (shell), "online", G_OBJECT (action), "visible"); + e_binding_new ( + G_OBJECT (shell), "network-available", + G_OBJECT (action), "sensitive"); + action = ACTION (WORK_ONLINE); e_binding_new_with_negation ( G_OBJECT (shell), "online", G_OBJECT (action), "visible"); + e_binding_new ( + G_OBJECT (shell), "network-available", + G_OBJECT (action), "sensitive"); + e_binding_new ( G_OBJECT (shell), "online", G_OBJECT (shell_window->priv->online_button), "online"); + e_binding_new ( + G_OBJECT (shell), "network-available", + G_OBJECT (shell_window->priv->online_button), "sensitive"); + /* Bind GObject properties to GConf keys. */ bridge = gconf_bridge_get (); -- cgit