From 1d12b2c4b061d35a00c7a1f1fa176fcd710ea546 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 6 Jan 2011 16:49:33 +0300 Subject: [PATCH] Ticket #2466: main menu is not drawn correctly ...after change of it visuality and activity. Signed-off-by: Andrew Borodin --- src/filemanager/layout.c | 5 +++-- src/filemanager/midnight.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/filemanager/layout.c b/src/filemanager/layout.c index 43324e132..e2ff0bcd7 100644 --- a/src/filemanager/layout.c +++ b/src/filemanager/layout.c @@ -635,8 +635,9 @@ void layout_change (void) { setup_panels (); - /* re-init the menu, because perhaps there was a change in the way - how the panel are split (horizontal/vertical). */ + /* update the main menu, because perhaps there was a change in the way + how the panel are split (horizontal/vertical), + and a change of menu visibility. */ update_menu (); load_hint (1); } diff --git a/src/filemanager/midnight.c b/src/filemanager/midnight.c index 5dddce6bf..5d3f46503 100644 --- a/src/filemanager/midnight.c +++ b/src/filemanager/midnight.c @@ -363,7 +363,6 @@ init_menu (void) right_menu = create_menu ("", create_panel_menu (), "[Left and Right Menus]"); menubar_add_menu (the_menubar, right_menu); update_menu (); - menubar_set_visible (the_menubar, menubar_visible); } /* --------------------------------------------------------------------------------------------- */ @@ -1477,6 +1476,7 @@ update_menu (void) menu_set_name (left_menu, horizontal_split ? _("&Above") : _("&Left")); menu_set_name (right_menu, horizontal_split ? _("&Below") : _("&Right")); menubar_arrange (the_menubar); + menubar_set_visible (the_menubar, menubar_visible); } void -- 2.11.4.GIT