mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[bfu] enum menu_action -> action_id_T
This commit is contained in:
parent
f536645e58
commit
f706afe8d0
@ -375,7 +375,7 @@ dialog_ev_kbd(struct dialog_data *dlg_data)
|
|||||||
struct widget_data *widget_data = selected_widget(dlg_data);
|
struct widget_data *widget_data = selected_widget(dlg_data);
|
||||||
const struct widget_ops *ops = widget_data->widget->ops;
|
const struct widget_ops *ops = widget_data->widget->ops;
|
||||||
/* XXX: KEYMAP_EDIT ? --pasky */
|
/* XXX: KEYMAP_EDIT ? --pasky */
|
||||||
enum menu_action action_id;
|
action_id_T action_id;
|
||||||
struct term_event *ev = dlg_data->term_event;
|
struct term_event *ev = dlg_data->term_event;
|
||||||
|
|
||||||
/* First let the widget try out. */
|
/* First let the widget try out. */
|
||||||
|
@ -138,7 +138,7 @@ hierbox_ev_kbd(struct dialog_data *dlg_data)
|
|||||||
struct widget *widget = widget_data->widget;
|
struct widget *widget = widget_data->widget;
|
||||||
struct listbox_data *box;
|
struct listbox_data *box;
|
||||||
struct listbox_item *selected;
|
struct listbox_item *selected;
|
||||||
enum menu_action action_id;
|
action_id_T action_id;
|
||||||
struct term_event *ev = dlg_data->term_event;
|
struct term_event *ev = dlg_data->term_event;
|
||||||
|
|
||||||
/* Check if listbox has something to say to this */
|
/* Check if listbox has something to say to this */
|
||||||
|
@ -622,7 +622,7 @@ mouse_listbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static widget_handler_status_T
|
static widget_handler_status_T
|
||||||
do_kbd_listbox_action(enum menu_action action_id, struct dialog_data *dlg_data,
|
do_kbd_listbox_action(action_id_T action_id, struct dialog_data *dlg_data,
|
||||||
struct widget_data *widget_data)
|
struct widget_data *widget_data)
|
||||||
{
|
{
|
||||||
struct widget_data *dlg_item = dlg_data->widgets_data;
|
struct widget_data *dlg_item = dlg_data->widgets_data;
|
||||||
@ -728,7 +728,7 @@ kbd_listbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
|
|||||||
switch (ev->ev) {
|
switch (ev->ev) {
|
||||||
case EVENT_KBD:
|
case EVENT_KBD:
|
||||||
{
|
{
|
||||||
enum menu_action action_id;
|
action_id_T action_id;
|
||||||
|
|
||||||
action_id = kbd_action(KEYMAP_MENU, ev, NULL);
|
action_id = kbd_action(KEYMAP_MENU, ev, NULL);
|
||||||
return do_kbd_listbox_action(action_id, dlg_data, widget_data);
|
return do_kbd_listbox_action(action_id, dlg_data, widget_data);
|
||||||
|
@ -882,7 +882,7 @@ static void
|
|||||||
menu_kbd_handler(struct menu *menu, struct term_event *ev)
|
menu_kbd_handler(struct menu *menu, struct term_event *ev)
|
||||||
{
|
{
|
||||||
struct window *win = menu->win;
|
struct window *win = menu->win;
|
||||||
enum menu_action action_id = kbd_action(KEYMAP_MENU, ev, NULL);
|
action_id_T action_id = kbd_action(KEYMAP_MENU, ev, NULL);
|
||||||
int s = 0;
|
int s = 0;
|
||||||
|
|
||||||
switch (action_id) {
|
switch (action_id) {
|
||||||
@ -1285,7 +1285,7 @@ static void
|
|||||||
mainmenu_kbd_handler(struct menu *menu, struct term_event *ev)
|
mainmenu_kbd_handler(struct menu *menu, struct term_event *ev)
|
||||||
{
|
{
|
||||||
struct window *win = menu->win;
|
struct window *win = menu->win;
|
||||||
enum menu_action action_id = kbd_action(KEYMAP_MENU, ev, NULL);
|
action_id_T action_id = kbd_action(KEYMAP_MENU, ev, NULL);
|
||||||
|
|
||||||
switch (action_id) {
|
switch (action_id) {
|
||||||
case ACT_MENU_ENTER:
|
case ACT_MENU_ENTER:
|
||||||
|
Loading…
Reference in New Issue
Block a user