[evolution/express2: 46/51] Disable the status bar for all but the mail view. Not implemented prettily, but cf. mail_shell_backe



commit 812724b03432af4cc14f84b81fe5f03b4df27d9f
Author: Michael Meeks <michael meeks novell com>
Date:   Wed Mar 31 15:12:23 2010 +0100

    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 ...

 shell/e-shell-window-private.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 2d11259..0b44aa8 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -422,14 +422,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");
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]