(ensure_menu_xml): Put in

the ComponentItems placeholder, instead of NewItems.

svn path=/trunk/; revision=17615
This commit is contained in:
Ettore Perazzoli
2002-07-26 19:04:16 +00:00
parent 718d677e68
commit 1a71d1071c
2 changed files with 7 additions and 2 deletions

View File

@ -363,7 +363,7 @@ ensure_menu_xml (EShellUserCreatableItemsHandler *handler)
xml = g_string_new ("");
g_string_append (xml, "<placeholder name=\"NewItems\">");
g_string_append (xml, "<placeholder name=\"ComponentItems\">");
for (p = priv->menu_items; p != NULL; p = p->next) {
const MenuItem *item;
@ -719,7 +719,7 @@ e_shell_user_creatable_items_handler_attach_menus (EShellUserCreatableItemsHandl
add_verbs (handler, shell_view);
ui_component = e_shell_view_get_bonobo_ui_component (shell_view);
bonobo_ui_component_set (ui_component, "/menu/File/New/NewItems", priv->menu_xml, NULL);
bonobo_ui_component_set (ui_component, "/menu/File/New", priv->menu_xml, NULL);
bonobo_ui_component_set (ui_component, "/popups/NewPopup", priv->menu_xml, NULL);
}