diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-04 01:27:31 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-04 01:27:31 +0800 |
commit | 643db1689446521b73c589ef61c82c9536f24f46 (patch) | |
tree | 99b64d882e907c5467fed3c94f29dc8c521507f4 /shell/e-shell-window.c | |
parent | d0841e7c2490436c664cfec87099b86d54d4127d (diff) | |
download | gsoc2013-evolution-643db1689446521b73c589ef61c82c9536f24f46.tar.gz gsoc2013-evolution-643db1689446521b73c589ef61c82c9536f24f46.tar.zst gsoc2013-evolution-643db1689446521b73c589ef61c82c9536f24f46.zip |
Get the "save-calendar" plugin working.
Based on initial work by Milan Crha.
Diffstat (limited to 'shell/e-shell-window.c')
-rw-r--r-- | shell/e-shell-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index 6b43877aba..a6ac5706e2 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -42,10 +42,12 @@ shell_window_new_view (EShellBackend *shell_backend, { GHashTable *loaded_views; EShellView *shell_view; + GtkUIManager *ui_manager; GtkNotebook *notebook; GtkAction *action; GtkWidget *widget; const gchar *name; + const gchar *id; gint page_num; GType type; @@ -71,6 +73,11 @@ shell_window_new_view (EShellBackend *shell_backend, loaded_views = shell_window->priv->loaded_views; g_hash_table_insert (loaded_views, g_strdup (name), shell_view); + /* Register the GtkUIManager ID for the shell view. */ + id = E_SHELL_VIEW_GET_CLASS (shell_view)->ui_manager_id; + ui_manager = e_shell_window_get_ui_manager (shell_window); + e_plugin_ui_register_manager (ui_manager, id, shell_view); + /* Add pages to the various shell window notebooks. */ /* We can't determine the shell view's page number until after the |