mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponentsHeader: move int of default buttons into its own member
This commit is contained in:
@@ -505,6 +505,7 @@ class CComponentsHeader : public CComponentsForm
|
||||
void initCCHeaderText();
|
||||
void initCCHeaderButtons();
|
||||
void initCCHItems();
|
||||
void initCCHDefaultButtons();
|
||||
|
||||
protected:
|
||||
void initVarHeader();
|
||||
|
@@ -1819,7 +1819,7 @@ void CComponentsHeader::removeHeaderButtons()
|
||||
cch_btn_obj->removeAllIcons();
|
||||
}
|
||||
|
||||
void CComponentsHeader::initCCHeaderButtons()
|
||||
void CComponentsHeader::initCCHDefaultButtons()
|
||||
{
|
||||
if (cch_buttons & CC_BTN_EXIT)
|
||||
v_cch_btn.push_back(NEUTRINO_ICON_BUTTON_HOME);
|
||||
@@ -1829,6 +1829,11 @@ void CComponentsHeader::initCCHeaderButtons()
|
||||
v_cch_btn.push_back(NEUTRINO_ICON_BUTTON_INFO);
|
||||
if (cch_buttons & CC_BTN_MENU)
|
||||
v_cch_btn.push_back(NEUTRINO_ICON_BUTTON_MENU);
|
||||
}
|
||||
|
||||
void CComponentsHeader::initCCHeaderButtons()
|
||||
{
|
||||
initCCHDefaultButtons();
|
||||
|
||||
//exit if no button defined
|
||||
if (v_cch_btn.empty())
|
||||
|
Reference in New Issue
Block a user