* main.c (midnight_callback): Implement "auto menus".

This commit is contained in:
Pavel Roskin 2001-11-29 21:03:16 +00:00
parent 905b9ac8f8
commit acbe83ef9c
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2001-11-29 Pavel Roskin <proski@gnu.org>
* main.c (midnight_callback): Implement "auto menus".
* layout.c: Make more variables static.
* cons.saver.c: Define LINUX_CONS_SAVER_C so that some parts

View File

@ -1863,11 +1863,16 @@ int
midnight_callback (struct Dlg_head *h, int id, int msg)
{
int i;
static int first_pre_event = 1;
switch (msg){
/* Speed up routine: now, we just set the */
case DLG_PRE_EVENT:
make_panels_dirty ();
if (auto_menu && first_pre_event) {
user_file_menu_cmd ();
}
first_pre_event = 0;
return MSG_HANDLED;
case DLG_KEY: