diff options
author | S.Antony Vincent Pandian <santony@gmail.com> | 2005-09-23 17:44:58 +0800 |
---|---|---|
committer | Sankarasivasubramanian Pasupathilingam <psankar@src.gnome.org> | 2005-09-23 17:44:58 +0800 |
commit | 7ac4fd8bf939d8f7aef82fa4d21ab26e3d62a072 (patch) | |
tree | d0d2ca2762439e3b2cdc84160f68cebe6719b314 /shell/e-shell-window.c | |
parent | cf7812d3533a55cda581f1684918db9fef83cfc9 (diff) | |
download | gsoc2013-evolution-7ac4fd8bf939d8f7aef82fa4d21ab26e3d62a072.tar.gz gsoc2013-evolution-7ac4fd8bf939d8f7aef82fa4d21ab26e3d62a072.tar.zst gsoc2013-evolution-7ac4fd8bf939d8f7aef82fa4d21ab26e3d62a072.zip |
Have added the "View Status Bar" under the "View" menu This is a toggle
2005-09-23 S.Antony Vincent Pandian <santony@gmail.com>
* Have added the "View Status Bar" under the "View" menu
This is a toggle button to hide/show the status bar
svn path=/trunk/; revision=30371
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) { |