[evolution] Hide extra toolbars when not in Express mode.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Hide extra toolbars when not in Express mode.
- Date: Fri, 28 May 2010 19:00:39 +0000 (UTC)
commit db89f125033c70a3043be9b0a3061ef1e66d9428
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri May 28 14:59:46 2010 -0400
Hide extra toolbars when not in Express mode.
shell/e-shell-window.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c
index 9838f9c..de6cda0 100644
--- a/shell/e-shell-window.c
+++ b/shell/e-shell-window.c
@@ -377,11 +377,13 @@ e_shell_window_get_menu_bar_box (EShellWindow *shell_window)
static GtkWidget *
shell_window_construct_toolbar (EShellWindow *shell_window)
{
+ EShell *shell;
GtkUIManager *ui_manager;
GtkWidget *toolbar;
GtkWidget *box;
GtkToolItem *item;
+ shell = e_shell_window_get_shell (shell_window);
ui_manager = e_shell_window_get_ui_manager (shell_window);
box = gtk_hbox_new (FALSE, 0);
@@ -394,7 +396,7 @@ shell_window_construct_toolbar (EShellWindow *shell_window)
toolbar = e_shell_window_get_managed_widget (
shell_window, "/main-toolbar");
- if (e_shell_get_meego_mode (shell_window->priv->shell))
+ if (e_shell_get_meego_mode (shell))
gtk_widget_set_name (GTK_WIDGET (toolbar), "MeeGoToolbar");
/* XXX Having this separator in the UI definition doesn't work
@@ -430,16 +432,18 @@ shell_window_construct_toolbar (EShellWindow *shell_window)
toolbar = e_shell_window_get_managed_widget (
shell_window, "/search-toolbar");
gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar), FALSE);
- gtk_box_pack_start (GTK_BOX (box), toolbar, FALSE, FALSE, 0);
- if (e_shell_get_meego_mode (shell_window->priv->shell))
- gtk_widget_set_name (GTK_WIDGET (toolbar), "MeeGoToolbar");
+ if (e_shell_get_express_mode (shell))
+ gtk_box_pack_start (GTK_BOX (box), toolbar, FALSE, FALSE, 0);
+ if (e_shell_get_meego_mode (shell))
+ gtk_widget_set_name (GTK_WIDGET (toolbar), "MeeGoToolbar");
toolbar = e_shell_window_get_managed_widget (
shell_window, "/close-toolbar");
gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar), FALSE);
- gtk_box_pack_start (GTK_BOX (box), toolbar, FALSE, FALSE, 0);
- if (e_shell_get_meego_mode (shell_window->priv->shell))
- gtk_widget_set_name (GTK_WIDGET (toolbar), "MeeGoToolbar");
+ if (e_shell_get_meego_mode (shell))
+ gtk_box_pack_start (GTK_BOX (box), toolbar, FALSE, FALSE, 0);
+ if (e_shell_get_meego_mode (shell))
+ gtk_widget_set_name (GTK_WIDGET (toolbar), "MeeGoToolbar");
return box;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]