From 8541e321f0d39295b315f057516f12a1fb4289f6 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 4 Jan 2005 19:58:45 +0000 Subject: new protos, modes 2005-01-04 JP Rosevear * e-sidebar.h: new protos, modes * e-sidebar.c: handle 2 more modes, text only and toolbar style; allow visibility to be set for the buttons * e-shell-window.h: new proto * e-shell-window.c (setup_widgets): set the sidebar setting and visibility based on stored gconf settings (e_shell_window_save_defaults): save the current sidebar setting visibility (e_shell_window_peek_sidebar): return the sidebar * e-shell-window-commands.c (e_shell_window_commands_setup): add listeners for each of the component button radio items and for the hide toggle (view_buttons_icontext_item_toggled_handler): listener callback, set mode (view_buttons_icon_item_toggled_handler): ditto (view_buttons_text_item_toggled_handler): ditto (view_buttons_toolbar_item_toggled_handler): ditto (view_buttons_hide_item_toggled_handler): listener callback, set visibility * apps_evolution_shell.schemas.in.in: add component button style and visibility defaults svn path=/trunk/; revision=28239 --- shell/e-shell-window.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shell/e-shell-window.h') diff --git a/shell/e-shell-window.h b/shell/e-shell-window.h index 01c231c329..80d5955d51 100644 --- a/shell/e-shell-window.h +++ b/shell/e-shell-window.h @@ -25,6 +25,7 @@ #include #include +#include "e-sidebar.h" #define E_TYPE_SHELL_WINDOW (e_shell_window_get_type ()) #define E_SHELL_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_SHELL_WINDOW, EShellWindow)) @@ -64,6 +65,7 @@ const char *e_shell_window_peek_current_component_id (EShellWindow *shell); EShell *e_shell_window_peek_shell (EShellWindow *window); BonoboUIComponent *e_shell_window_peek_bonobo_ui_component (EShellWindow *window); +ESidebar *e_shell_window_peek_sidebar (EShellWindow *window); void e_shell_window_save_defaults (EShellWindow *window); void e_shell_window_show_settings (EShellWindow *window); -- cgit