rewind to 10 Feb 2006.

This commit is contained in:
Dai Sato
2006-04-07 13:21:11 +00:00
parent bc7f9c9026
commit 22d66ca585
22 changed files with 64 additions and 941 deletions

20
menu.c
View File

@@ -1,4 +1,4 @@
/* $Id: menu.c,v 1.44 2006/04/05 14:18:54 inu Exp $ */
/* $Id: menu.c,v 1.45 2006/04/07 13:21:12 inu Exp $ */
/*
* w3m menu.c
*/
@@ -590,6 +590,7 @@ action_menu(Menu *menu)
*item.variable = item.value;
if (item.type & MENU_FUNC) {
CurrentKey = -1;
CurrentKeyData = NULL;
CurrentCmdData = item.data;
(*item.func) ();
CurrentCmdData = NULL;
@@ -1737,23 +1738,6 @@ initMenu(void)
}
}
DEFUN(interpretAsMenu, INTERPRET_AS_MENU, "Interpret current document as menu-definition")
{
FILE *mf;
MenuList *list;
if ((mf = fopen(Currentbuf->sourcefile, "r")) != NULL) {
interpret_menu(mf);
fclose(mf);
for (list = w3mMenuList; list->id != NULL; list++) {
if (list->item == NULL)
continue;
new_menu(list->menu, list->item);
}
}
}
int
setMenuItem(MenuItem *item, char *type, char *line)
{