diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-08-25 12:09:45 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-25 12:09:45 +0800 |
commit | 473f8dca644b3f9f48529daeed44de2097ee311d (patch) | |
tree | f62588172a49029bdf8df9ce518651906d6c3c8d /shell/e-shell-window-private.c | |
parent | 452650a573432a6416f3f31ec0594b888a52b93f (diff) | |
download | gsoc2013-evolution-473f8dca644b3f9f48529daeed44de2097ee311d.tar.gz gsoc2013-evolution-473f8dca644b3f9f48529daeed44de2097ee311d.tar.zst gsoc2013-evolution-473f8dca644b3f9f48529daeed44de2097ee311d.zip |
Bug 511769 - Poor indication of when network is unavailable
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 (); |