aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-private.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-02-11 21:46:13 +0800
committerMilan Crha <mcrha@redhat.com>2011-02-11 21:46:13 +0800
commitc2954322eb09c096b66d62142963e244005f66b6 (patch)
treeccb9d1f88cc1e0bc58c2bd0611533571e7ad1166 /shell/e-shell-window-private.c
parent08c98477b902570255b767258d2c721ee3d0e4cb (diff)
downloadgsoc2013-evolution-c2954322eb09c096b66d62142963e244005f66b6.tar.gz
gsoc2013-evolution-c2954322eb09c096b66d62142963e244005f66b6.tar.zst
gsoc2013-evolution-c2954322eb09c096b66d62142963e244005f66b6.zip
Bug #638057 - Evolution --express doesn't remember status bar setting
Diffstat (limited to 'shell/e-shell-window-private.c')
-rw-r--r--shell/e-shell-window-private.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 1c9ee99de0..6ad1875bd0 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -427,20 +427,14 @@ 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");
- if (e_shell_get_express_mode (shell)) {
- const gchar *active_view;
- gboolean taskbar_visible;
+ object = G_OBJECT (shell_window);
+ key = "/apps/evolution/shell/view_defaults/statusbar_visible";
+ gconf_bridge_bind_property (bridge, key, object, "taskbar-visible");
- active_view = e_shell_window_get_active_view (shell_window);
- taskbar_visible = (g_strcmp0 (active_view, "mail") == 0);
+ if (e_shell_get_express_mode (shell)) {
e_shell_window_set_switcher_visible (shell_window, FALSE);
- e_shell_window_set_taskbar_visible (shell_window, taskbar_visible);
} 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");
}