mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[bfu] cast in call of add_dlg_button
This commit is contained in:
parent
3b57ebd352
commit
e432fc8c91
@ -234,8 +234,8 @@ input_field(struct terminal *term, struct memory_list *ml, int intl,
|
||||
|
||||
add_dlg_field(dlg, text, min, max, check, l, field, history);
|
||||
|
||||
add_dlg_button(dlg, okbutton, B_ENTER, input_field_ok, fn);
|
||||
add_dlg_button(dlg, cancelbutton, B_ESC, input_field_cancel, cancelfn);
|
||||
add_dlg_button(dlg, okbutton, B_ENTER, input_field_ok, (void *)fn);
|
||||
add_dlg_button(dlg, cancelbutton, B_ESC, input_field_cancel, (void *)cancelfn);
|
||||
|
||||
add_dlg_end(dlg, INPUT_WIDGETS_COUNT);
|
||||
|
||||
|
@ -100,7 +100,7 @@ do_edit_dialog(struct terminal *term, int intl, char *title,
|
||||
|
||||
if (when_cancel)
|
||||
add_dlg_button(dlg, _("~Cancel", term), B_ESC,
|
||||
my_cancel_dialog, when_cancel);
|
||||
my_cancel_dialog, (void *)when_cancel);
|
||||
else
|
||||
add_dlg_button(dlg, _("~Cancel", term), B_ESC,
|
||||
cancel_dialog, NULL);
|
||||
|
@ -1968,7 +1968,7 @@ search_dlg_do(struct terminal *term, struct memory_list *ml,
|
||||
add_dlg_radio(dlg, _("Case sensitive", term), 2, 1, &hop->values[SEARCH_OPT_CASE].number);
|
||||
add_dlg_radio(dlg, _("Case insensitive", term), 2, 0, &hop->values[SEARCH_OPT_CASE].number);
|
||||
|
||||
add_dlg_button(dlg, _("~OK", term), B_ENTER, search_dlg_ok, fn);
|
||||
add_dlg_button(dlg, _("~OK", term), B_ENTER, search_dlg_ok, (void *)fn);
|
||||
add_dlg_button(dlg, _("~Cancel", term), B_ESC, search_dlg_cancel, NULL);
|
||||
|
||||
add_dlg_end(dlg, SEARCH_WIDGETS_COUNT);
|
||||
|
Loading…
Reference in New Issue
Block a user