mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-06 23:44:43 -04:00
Compilation fix for C++
This commit is contained in:
parent
1b06539694
commit
5b2efc8976
45
src/cache/dialogs.c
vendored
45
src/cache/dialogs.c
vendored
@ -213,30 +213,6 @@ match_cache_entry_contents(struct listbox_item *item, struct terminal *term,
|
||||
return LISTBOX_MATCH_NO;
|
||||
}
|
||||
|
||||
const static struct listbox_ops cache_entry_listbox_ops;
|
||||
|
||||
static widget_handler_status_T
|
||||
push_cache_hierbox_search_button(struct dialog_data *dlg_data, struct widget_data *button)
|
||||
{
|
||||
struct listbox_data *box = get_dlg_listbox_data(dlg_data);
|
||||
|
||||
box->ops = &cache_entry_listbox_ops;
|
||||
|
||||
return push_hierbox_search_button(dlg_data, button);
|
||||
}
|
||||
|
||||
const static struct listbox_ops cache_entry_listbox_ops_match_contents;
|
||||
|
||||
static widget_handler_status_T
|
||||
push_cache_hierbox_search_contents_button(struct dialog_data *dlg_data, struct widget_data *button)
|
||||
{
|
||||
struct listbox_data *box = get_dlg_listbox_data(dlg_data);
|
||||
|
||||
box->ops = &cache_entry_listbox_ops_match_contents;
|
||||
|
||||
return push_hierbox_search_button(dlg_data, button);
|
||||
}
|
||||
|
||||
static struct listbox_ops_messages cache_messages = {
|
||||
/* cant_delete_item */
|
||||
N_("Sorry, but cache entry \"%s\" cannot be deleted."),
|
||||
@ -295,6 +271,27 @@ const static struct listbox_ops cache_entry_listbox_ops = {
|
||||
|
||||
#undef ops
|
||||
|
||||
static widget_handler_status_T
|
||||
push_cache_hierbox_search_button(struct dialog_data *dlg_data, struct widget_data *button)
|
||||
{
|
||||
struct listbox_data *box = get_dlg_listbox_data(dlg_data);
|
||||
|
||||
box->ops = &cache_entry_listbox_ops;
|
||||
|
||||
return push_hierbox_search_button(dlg_data, button);
|
||||
}
|
||||
|
||||
static widget_handler_status_T
|
||||
push_cache_hierbox_search_contents_button(struct dialog_data *dlg_data, struct widget_data *button)
|
||||
{
|
||||
struct listbox_data *box = get_dlg_listbox_data(dlg_data);
|
||||
|
||||
box->ops = &cache_entry_listbox_ops_match_contents;
|
||||
|
||||
return push_hierbox_search_button(dlg_data, button);
|
||||
}
|
||||
|
||||
|
||||
static widget_handler_status_T
|
||||
push_invalidate_button(struct dialog_data *dlg_data, struct widget_data *button)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user