aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-03-31 22:12:23 +0800
committerMichael Meeks <michael.meeks@novell.com>2010-03-31 22:14:24 +0800
commit5d9609032b277e78ddc6aa4e16c4dbc1fe860eca (patch)
tree23e2e0cac3b968039e304c095663e02e4eed7b08 /shell
parentd56b26ea3a61a3caa125f844f6859b9180a137d7 (diff)
downloadgsoc2013-evolution-5d9609032b277e78ddc6aa4e16c4dbc1fe860eca.tar.gz
gsoc2013-evolution-5d9609032b277e78ddc6aa4e16c4dbc1fe860eca.tar.zst
gsoc2013-evolution-5d9609032b277e78ddc6aa4e16c4dbc1fe860eca.zip
Disable the status bar for all but the mail view.
Not implemented prettily, but cf. mail_shell_backend_window_created_cb getting invoked even for addressbok windows ...
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-window-private.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 47706637ab..eda1d9106b 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -424,14 +424,17 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
key = "/apps/evolution/shell/view_defaults/sidebar_visible";
gconf_bridge_bind_property (bridge, key, object, "sidebar-visible");
- object = G_OBJECT (shell_window);
- key = "/apps/evolution/shell/view_defaults/statusbar_visible";
- gconf_bridge_bind_property (bridge, key, object, "taskbar-visible");
-
if (e_shell_get_express_mode (shell)) {
+ const char *active_view = e_shell_window_get_active_view (shell_window);
e_shell_window_set_switcher_visible (shell_window, FALSE);
+ e_shell_window_set_taskbar_visible (shell_window, active_view &&
+ !strcmp (active_view, "mail"));
} else {
object = G_OBJECT (shell_window);
+ key = "/apps/evolution/shell/view_defaults/statusbar_visible";
+ gconf_bridge_bind_property (bridge, key, object, "taskbar-visible");
+
+ object = G_OBJECT (shell_window);
key = "/apps/evolution/shell/view_defaults/buttons_visible";
gconf_bridge_bind_property (bridge, key, object, "switcher-visible");
}