mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
user_menu: allow controlable return_title value
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9325385ce9
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-12-29 (Tue, 29 Dec 2015)
Origin message was:
------------------
- user_menu: allow controlable return_title value
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -478,13 +478,12 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *CUserMenu::getUserMenuButtonName(int button, bool &active)
|
const char *CUserMenu::getUserMenuButtonName(int button, bool &active, bool return_title)
|
||||||
{
|
{
|
||||||
active = false;
|
active = false;
|
||||||
if(button < 0 || button >= (int) g_settings.usermenu.size())
|
if(button < 0 || button >= (int) g_settings.usermenu.size())
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
bool return_title = false;
|
|
||||||
neutrino_locale_t loc = NONEXISTANT_LOCALE;
|
neutrino_locale_t loc = NONEXISTANT_LOCALE;
|
||||||
const char *text = NULL;
|
const char *text = NULL;
|
||||||
|
|
||||||
|
@@ -76,7 +76,7 @@ class CUserMenu : public CChangeObserver
|
|||||||
CUserMenu();
|
CUserMenu();
|
||||||
~CUserMenu();
|
~CUserMenu();
|
||||||
bool showUserMenu(neutrino_msg_t msg);
|
bool showUserMenu(neutrino_msg_t msg);
|
||||||
static const char *getUserMenuButtonName(int button, bool &active);
|
static const char *getUserMenuButtonName(int button, bool &active, bool return_title = false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user