aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-05-28 20:48:37 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-05-28 21:34:56 +0800
commit73d63f2a55ff54b8f145b8bdd0493d70dd263a92 (patch)
tree8ea97e5bcf4c351841cfeef128cfdd18743398d6
parent22c1c0152ed313155c94218f2c984d77ed58ba0b (diff)
downloadgsoc2013-evolution-73d63f2a55ff54b8f145b8bdd0493d70dd263a92.tar
gsoc2013-evolution-73d63f2a55ff54b8f145b8bdd0493d70dd263a92.tar.gz
gsoc2013-evolution-73d63f2a55ff54b8f145b8bdd0493d70dd263a92.tar.bz2
gsoc2013-evolution-73d63f2a55ff54b8f145b8bdd0493d70dd263a92.tar.lz
gsoc2013-evolution-73d63f2a55ff54b8f145b8bdd0493d70dd263a92.tar.xz
gsoc2013-evolution-73d63f2a55ff54b8f145b8bdd0493d70dd263a92.tar.zst
gsoc2013-evolution-73d63f2a55ff54b8f145b8bdd0493d70dd263a92.zip
Minor EShellWindow cleanup.
-rw-r--r--shell/e-shell-window-private.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index a2b8ccec40..7bcf069408 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -443,10 +443,13 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
gconf_bridge_bind_property (bridge, key, object, "sidebar-visible");
if (e_shell_get_express_mode (shell)) {
- const gchar *active_view = e_shell_window_get_active_view (shell_window);
+ const gchar *active_view;
+ gboolean taskbar_visible;
+
+ active_view = e_shell_window_get_active_view (shell_window);
+ taskbar_visible = (g_strcmp0 (active_view, "mail") == 0);
e_shell_window_set_switcher_visible (shell_window, FALSE);
- e_shell_window_set_taskbar_visible (shell_window, active_view &&
- !strcmp (active_view, "mail"));
+ e_shell_window_set_taskbar_visible (shell_window, taskbar_visible);
} else {
object = G_OBJECT (shell_window);
key = "/apps/evolution/shell/view_defaults/statusbar_visible";