diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-20 16:43:23 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-20 16:43:23 (GMT) |
commit | a809d3517eb928d5d7a03d96a85f8af96daa1047 (patch) | |
tree | 451decffd5fc20d1a5237b2aa814a62aaba99316 /src/gui/menus/menubar.c | |
parent | 5093663eb4e4aa17edd97cbd864ccb4a3d48a803 (diff) |
Included dynamic items in the view menu.
Diffstat (limited to 'src/gui/menus/menubar.c')
-rw-r--r-- | src/gui/menus/menubar.c | 5 |
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); } |