diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-05-29 02:59:46 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-05-29 03:00:29 +0800 |
commit | db89f125033c70a3043be9b0a3061ef1e66d9428 (patch) | |
tree | 9dbb569eff68a7e4fcf110385776d706e98b6eb0 | |
parent | a914f640386c948d9d7dab65bbf17c9839ae97a6 (diff) | |
download | gsoc2013-evolution-db89f125033c70a3043be9b0a3061ef1e66d9428.tar gsoc2013-evolution-db89f125033c70a3043be9b0a3061ef1e66d9428.tar.gz gsoc2013-evolution-db89f125033c70a3043be9b0a3061ef1e66d9428.tar.bz2 gsoc2013-evolution-db89f125033c70a3043be9b0a3061ef1e66d9428.tar.lz gsoc2013-evolution-db89f125033c70a3043be9b0a3061ef1e66d9428.tar.xz gsoc2013-evolution-db89f125033c70a3043be9b0a3061ef1e66d9428.tar.zst gsoc2013-evolution-db89f125033c70a3043be9b0a3061ef1e66d9428.zip |
Hide extra toolbars when not in Express mode.
-rw-r--r-- | 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 9838f9c730..de6cda0e76 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; } |