summaryrefslogtreecommitdiff
path: root/src/gui/menus/menubar.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-20 16:43:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-20 16:43:23 (GMT)
commita809d3517eb928d5d7a03d96a85f8af96daa1047 (patch)
tree451decffd5fc20d1a5237b2aa814a62aaba99316 /src/gui/menus/menubar.c
parent5093663eb4e4aa17edd97cbd864ccb4a3d48a803 (diff)
Included dynamic items in the view menu.
Diffstat (limited to 'src/gui/menus/menubar.c')
-rw-r--r--src/gui/menus/menubar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/menus/menubar.c b/src/gui/menus/menubar.c
index bc5a045..863ac54 100644
--- a/src/gui/menus/menubar.c
+++ b/src/gui/menus/menubar.c
@@ -282,6 +282,8 @@ GEditorItem *g_menu_bar_new(GObject *ref)
static void change_menubar_current_content(GMenuBar *bar, GLoadedContent *old, GLoadedContent *new)
{
+ rebuild_menu_view_for_content(bar->view, new);
+
update_access_for_content_in_menu_binary(new);
}
@@ -305,7 +307,8 @@ static void change_menubar_current_view(GMenuBar *bar, GLoadedPanel *old, GLoade
{
update_access_for_view_in_menu_edition(new);
- rebuild_menu_view(bar->view, new, bar);
+ rebuild_menu_view_for_view(bar->view, new);
+
update_access_for_view_in_menu_view(G_EDITOR_ITEM(bar)->ref, new);
}