diff options
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index e40413f7f2..2d1919b2a7 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -556,6 +556,21 @@ e_shell_view_is_active (EShellView *shell_view) return gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); } +void +e_shell_view_add_activity (EShellView *shell_view, + EActivity *activity) +{ + EShellViewClass *shell_view_class; + EShellModule *shell_module; + + g_return_if_fail (E_IS_SHELL_VIEW (shell_view)); + g_return_if_fail (E_IS_ACTIVITY (activity)); + + shell_view_class = E_SHELL_VIEW_GET_CLASS (shell_view); + shell_module = E_SHELL_MODULE (shell_view_class->type_module); + e_shell_module_add_activity (shell_module, activity); +} + gint e_shell_view_get_page_num (EShellView *shell_view) { |