(menu_entries_cbs_select.c) Take out action parameter
This commit is contained in:
parent
499660417c
commit
96f35f95e7
|
@ -16,8 +16,7 @@
|
|||
#include "menu.h"
|
||||
#include "menu_entries_cbs.h"
|
||||
|
||||
static int action_select_default(unsigned type, const char *label,
|
||||
unsigned action)
|
||||
static int action_select_default(unsigned type, const char *label)
|
||||
{
|
||||
menu_displaylist_info_t info = {0};
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
|
|
|
@ -490,7 +490,7 @@ int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
|
|||
break;
|
||||
case MENU_ACTION_SELECT:
|
||||
if (cbs && cbs->action_select)
|
||||
return cbs->action_select(entry->type, entry->label, action);
|
||||
return cbs->action_select(entry->type, entry->label);
|
||||
break;
|
||||
|
||||
case MENU_ACTION_REFRESH:
|
||||
|
|
|
@ -41,7 +41,7 @@ typedef struct menu_file_list_cbs
|
|||
int (*action_cancel)(const char *path, const char *label, unsigned type,
|
||||
size_t idx);
|
||||
int (*action_start)(unsigned type, const char *label);
|
||||
int (*action_select)(unsigned type, const char *label, unsigned action);
|
||||
int (*action_select)(unsigned type, const char *label);
|
||||
int (*action_content_list_switch)(void *data, void *userdata, const char
|
||||
*path, const char *label, unsigned type);
|
||||
int (*action_toggle)(unsigned type, const char *label, unsigned action,
|
||||
|
|
Loading…
Reference in New Issue