diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-12-02 08:38:52 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-12-02 11:27:11 +0800 |
commit | 793e57e24ca2ac458baa0897ad971dfbf08e8291 (patch) | |
tree | baf73cba7ce97485e03502d4eab2f551120bfb7e /shell/e-shell-window.h | |
parent | 9379111ae48dd0e9eaea3fcdd14593414a60c115 (diff) | |
download | gsoc2013-evolution-793e57e24ca2ac458baa0897ad971dfbf08e8291.tar.gz gsoc2013-evolution-793e57e24ca2ac458baa0897ad971dfbf08e8291.tar.zst gsoc2013-evolution-793e57e24ca2ac458baa0897ad971dfbf08e8291.zip |
Add private virtual methods to EShellWindowClass.
So Anjal can override what it needs to for its own purpose.
Also makes the EShellWindow design a little cleaner.
Methods added:
GtkWidget * (*construct_menubar) (EShellWindow *shell_window);
GtkWidget * (*construct_toolbar) (EShellWindow *shell_window);
GtkWidget * (*construct_sidebar) (EShellWindow *shell_window);
GtkWidget * (*construct_content) (EShellWindow *shell_window);
GtkWidget * (*construct_taskbar) (EShellWindow *shell_window);
EShellView * (*create_shell_view) (EShellWindow *shell_window,
const gchar *view_name);
Also added some new GObject properties to help decouple actions from
internal EShellWindow widgets created by these methods:
EShellWindow:sidebar-visible
EShellWindow:switcher-visible
EShellWindow:taskbar-visible
EShellWindow:toolbar-visible
Diffstat (limited to 'shell/e-shell-window.h')
-rw-r--r-- | shell/e-shell-window.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/shell/e-shell-window.h b/shell/e-shell-window.h index c9ba9280b0..bb88003955 100644 --- a/shell/e-shell-window.h +++ b/shell/e-shell-window.h @@ -71,6 +71,16 @@ struct _EShellWindow { struct _EShellWindowClass { GtkWindowClass parent_class; + + /* These are all protected methods. Not for public use. */ + GtkWidget * (*construct_menubar) (EShellWindow *shell_window); + GtkWidget * (*construct_toolbar) (EShellWindow *shell_window); + GtkWidget * (*construct_sidebar) (EShellWindow *shell_window); + GtkWidget * (*construct_content) (EShellWindow *shell_window); + GtkWidget * (*construct_taskbar) (EShellWindow *shell_window); + struct _EShellView * + (*create_shell_view) (EShellWindow *shell_window, + const gchar *view_name); }; GType e_shell_window_get_type (void); @@ -100,6 +110,26 @@ void e_shell_window_set_safe_mode (EShellWindow *shell_window, gboolean safe_mode); void e_shell_window_add_action_group (EShellWindow *shell_window, const gchar *group_name); +gboolean e_shell_window_get_sidebar_visible + (EShellWindow *shell_window); +void e_shell_window_set_sidebar_visible + (EShellWindow *shell_window, + gboolean sidebar_visible); +gboolean e_shell_window_get_switcher_visible + (EShellWindow *shell_window); +void e_shell_window_set_switcher_visible + (EShellWindow *shell_window, + gboolean switcher_visible); +gboolean e_shell_window_get_taskbar_visible + (EShellWindow *shell_window); +void e_shell_window_set_taskbar_visible + (EShellWindow *shell_window, + gboolean taskbar_visible); +gboolean e_shell_window_get_toolbar_visible + (EShellWindow *shell_window); +void e_shell_window_set_toolbar_visible + (EShellWindow *shell_window, + gboolean toolbar_visible); /* These should be called from the shell backend's window_created() handler. */ |