diff options
Diffstat (limited to 'shell/e-shell-window.c')
-rw-r--r-- | shell/e-shell-window.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index cbb3bfc175..f45d047f8c 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -564,7 +564,8 @@ setup_status_bar (EShellWindow *window) priv = window->priv; priv->status_bar = gtk_hbox_new (FALSE, 2); - gtk_widget_show (priv->status_bar); + if(gconf_client_get_bool (gconf_client_get_default(),"/apps/evolution/shell/view_defaults/statusbar_visible",NULL)) + gtk_widget_show (priv->status_bar); setup_offline_toggle (window); setup_menu_hint_label (window); @@ -679,6 +680,16 @@ setup_widgets (EShellWindow *window) } g_free (style); + /* Status Bar*/ + visible = gconf_client_get_bool (gconf_client, + "/apps/evolution/shell/view_defaults/statusbar_visible", + NULL); + bonobo_ui_component_set_prop (e_shell_window_peek_bonobo_ui_component (window), + "/commands/ViewStatusBar", + "state", + visible ? "1" : "0", + NULL); + /* The tool bar */ visible = gconf_client_get_bool (gconf_client, "/apps/evolution/shell/view_defaults/toolbar_visible", @@ -977,6 +988,12 @@ e_shell_window_peek_sidebar (EShellWindow *window) return E_SIDEBAR (window->priv->sidebar); } +GtkWidget * +e_shell_window_peek_statusbar (EShellWindow *window) +{ + return window->priv->status_bar; +} + void e_shell_window_save_defaults (EShellWindow *window) { |