aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/ChangeLog5
-rw-r--r--widgets/menus/gal-view-menus.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog
index 96fdb81ba8..80e49ef174 100644
--- a/widgets/ChangeLog
+++ b/widgets/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-16 Miguel de Icaza <miguel@ximian.com>
+
+ * menus/gal-view-menus.c (build_menus): Hook this up under the
+ "ViewBegin" node.
+
2001-02-28 Miguel de Icaza <miguel@ximian.com>
* menus/gal-view-menus.c (build_menus): Add translation string
diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c
index 6c8de18af0..6dc4633c84 100644
--- a/widgets/menus/gal-view-menus.c
+++ b/widgets/menus/gal-view-menus.c
@@ -148,10 +148,7 @@ define_views(BonoboUIComponent *component,
static char *
build_menus(GalViewMenus *menus)
{
- BonoboUINode *root;
- BonoboUINode *menu;
- BonoboUINode *submenu;
- BonoboUINode *menuitem;
+ BonoboUINode *root, *menu, *submenu, *place, *menuitem;
char *xml;
xmlChar *string;
int length;
@@ -166,7 +163,10 @@ build_menus(GalViewMenus *menus)
submenu = bonobo_ui_node_new_child(menu, "submenu");
bonobo_ui_node_set_attr(submenu, "name", "View");
- submenu = bonobo_ui_node_new_child(submenu, "submenu");
+ place = bonobo_ui_node_new_child(submenu, "placeholder");
+ bonobo_ui_node_set_attr(place, "name", "ViewBegin");
+
+ submenu = bonobo_ui_node_new_child(place, "submenu");
bonobo_ui_node_set_attr(submenu, "name", "CurrentView");
bonobo_ui_node_set_attr(submenu, "_label", _("_Current View"));