diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-23 00:46:34 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-23 00:46:34 +0800 |
commit | 48462592cb67d956cf8b4a69eba00153d585c462 (patch) | |
tree | e23046a3bcadc5b27457c85b13ec3a2c9460741c /shell/e-shell-window.h | |
parent | 97ec849ee54387df954ee461ae371c3054443bfa (diff) | |
download | gsoc2013-evolution-48462592cb67d956cf8b4a69eba00153d585c462.tar.gz gsoc2013-evolution-48462592cb67d956cf8b4a69eba00153d585c462.tar.zst gsoc2013-evolution-48462592cb67d956cf8b4a69eba00153d585c462.zip |
Add a EShellWindow::shell-view-created signal.
The signal uses the name of the newly created shell view as the detail,
so for example "shell-view-created::mail" is emitted when the "mail"
view is created.
Also, add e_shell_window_peek_shell_view() to obtain a shell view if it
exists but without instantiating it.
Using these new tools, teach the templates plugin to wait for the user
to switch to the "mail" view before connecting to its "update-actions"
signal. Previously is was instantiating the "mail" view itself.
Diffstat (limited to 'shell/e-shell-window.h')
-rw-r--r-- | shell/e-shell-window.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/e-shell-window.h b/shell/e-shell-window.h index 4ac76ba5d4..0bd71075c9 100644 --- a/shell/e-shell-window.h +++ b/shell/e-shell-window.h @@ -73,6 +73,10 @@ struct _EShellWindow { struct _EShellWindowClass { GtkWindowClass parent_class; + /* Signals */ + void (*shell_view_created) (EShellWindow *shell_window, + struct _EShellView *shell_view); + /* These are all protected methods. Not for public use. */ GtkWidget * (*construct_menubar) (EShellWindow *shell_window); GtkWidget * (*construct_toolbar) (EShellWindow *shell_window); @@ -92,6 +96,9 @@ EShell * e_shell_window_get_shell (EShellWindow *shell_window); struct _EShellView * e_shell_window_get_shell_view (EShellWindow *shell_window, const gchar *view_name); +struct _EShellView * + e_shell_window_peek_shell_view (EShellWindow *shell_window, + const gchar *view_name); GtkAction * e_shell_window_get_shell_view_action (EShellWindow *shell_window, const gchar *view_name); |