From d40faeb22e27c8df9e8d626fcbea2efe1741d768 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 10 Nov 2003 21:21:47 +0000 Subject: New member "component_alias". (component_view_new): Get a new "alias" arg, * e-shell-window.c (struct _ComponentView): New member "component_alias". (component_view_new): Get a new "alias" arg, set the member in the struct accordingly. (component_view_free): Free ->component_alias. (setup_widgets): Pass the alias from the ComponentInfo to e_component_view(). (switch_view): New utility function. (sidebar_button_selected_callback): Use it. (e_shell_window_switch_to_component): New public function. (e_shell_window_new): Switch to the component whose id is in the /apps/evolution/shell/view_defaults/component_id GConf key. * apps_evolution_shell.schemas: Removed view_defaults/folder_path. New key view_defaults/component_id. * e-component-registry.c (component_info_free): Free ->alias. (component_info_new): Get an "alias" arg and set the member accordingly. (query_components): Remove debugging messages. Get an "evolution:component_alias" property from the component and set the alias from that. * e-component-registry.h (struct _EComponentInfo): New member "alias". svn path=/trunk/; revision=23265 --- shell/e-shell-window.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell/e-shell-window.h') diff --git a/shell/e-shell-window.h b/shell/e-shell-window.h index f23ac67d31..1a012fe20a 100644 --- a/shell/e-shell-window.h +++ b/shell/e-shell-window.h @@ -54,6 +54,9 @@ GType e_shell_window_get_type (void); GtkWidget *e_shell_window_new (EShell *shell); +void e_shell_window_switch_to_component (EShellWindow *shell, + const char *component_id); + EShell *e_shell_window_peek_shell (EShellWindow *window); BonoboUIComponent *e_shell_window_peek_bonobo_ui_component (EShellWindow *window); -- cgit