From fad1048c1bc7c92496df1d580064cd3a5e716840 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 30 May 2000 23:59:22 +0000 Subject: Make quit work again by implementing a CORBA method to unregister components in ShellComponent. Implemented toggle menu items to hide/show the shortcut bar and the folder bar (but they don't work, apparently because of some BonoboUIHandler bogosity). Implemented a CORBA method in Shell to allow a client to get the component that handles a certain folder type. svn path=/trunk/; revision=3303 --- shell/e-shell-view.h | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) (limited to 'shell/e-shell-view.h') diff --git a/shell/e-shell-view.h b/shell/e-shell-view.h index d0ac824a96..fa38ff695c 100644 --- a/shell/e-shell-view.h +++ b/shell/e-shell-view.h @@ -28,7 +28,8 @@ #include #endif -#include +#include +#include #include "e-shell.h" @@ -48,13 +49,12 @@ typedef struct _EShellView EShellView; typedef struct _EShellViewPrivate EShellViewPrivate; typedef struct _EShellViewClass EShellViewClass; -enum _EShellViewShowFoldersMode { - E_SHELL_VIEW_SHOW_FOLDERS_HIDDEN, - E_SHELL_VIEW_SHOW_FOLDERS_TRANSIENT, - E_SHELL_VIEW_SHOW_FOLDERS_STICKY +enum _EShellViewSubwindowMode { + E_SHELL_VIEW_SUBWINDOW_HIDDEN, + E_SHELL_VIEW_SUBWINDOW_TRANSIENT, + E_SHELL_VIEW_SUBWINDOW_STICKY }; -typedef enum _EShellViewShowFoldersMode EShellViewShowFoldersMode; - +typedef enum _EShellViewSubwindowMode EShellViewSubwindowMode; struct _EShellView { GnomeApp parent; @@ -64,23 +64,28 @@ struct _EShellView { struct _EShellViewClass { GnomeAppClass parent_class; + + /* Signals. */ + void (* shortcut_bar_mode_changed) (EShellView *shell_view, EShellViewSubwindowMode new_mode); + void (* folder_bar_mode_changed) (EShellView *shell_view, EShellViewSubwindowMode mode); }; -GtkType e_shell_view_get_type (void); -void e_shell_view_construct (EShellView *shell_view, - EShell *shell); -GtkWidget *e_shell_view_new (EShell *shell); +GtkType e_shell_view_get_type (void); +void e_shell_view_construct (EShellView *shell_view, + EShell *shell); +GtkWidget *e_shell_view_new (EShell *shell); -gboolean e_shell_view_display_uri (EShellView *shell_view, - const char *uri); +gboolean e_shell_view_display_uri (EShellView *shell_view, + const char *uri); -void e_shell_view_show_shortcuts (EShellView *shell_view, - gboolean show); -void e_shell_view_show_folders (EShellView *shell_view, - gboolean show); +void e_shell_view_set_shortcut_bar_mode (EShellView *shell_view, + EShellViewSubwindowMode mode); +void e_shell_view_set_folder_bar_mode (EShellView *shell_view, + EShellViewSubwindowMode mode); -EShell *e_shell_view_get_shell (EShellView *shell_view); +EShell *e_shell_view_get_shell (EShellView *shell_view); +BonoboUIHandler *e_shell_view_get_bonobo_ui_handler (EShellView *shell_view); #ifdef __cplusplus } -- cgit