diff options
Diffstat (limited to 'shell/e-shell-window-private.c')
-rw-r--r-- | shell/e-shell-window-private.c | 12 |
1 files changed, 12 insertions, 0 deletions
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,6 +388,10 @@ 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 ( @@ -395,9 +399,17 @@ e_shell_window_private_constructed (EShellWindow *shell_window) 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 (); |