(menu_entries_cbs_select.c) Take out action parameter

This commit is contained in:
twinaphex 2015-05-18 15:24:15 +02:00
parent 499660417c
commit 96f35f95e7
3 changed files with 3 additions and 4 deletions

View File

@ -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();

View File

@ -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:

View File

@ -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,