From 643db1689446521b73c589ef61c82c9536f24f46 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 3 Sep 2009 13:27:31 -0400 Subject: Get the "save-calendar" plugin working. Based on initial work by Milan Crha. --- shell/e-shell-window.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'shell/e-shell-window.c') 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 -- cgit v1.2.3