Ticket #2466: main menu is not drawn correctly

...after change of it visibility and activity.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-01-06 16:49:33 +03:00
parent 90de8381e4
commit 99b60cc2b3
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}

View File

@ -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