CComponentsHeader: move int of default buttons into its own member

Origin commit data
------------------
Commit: 62f44d7a8c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-24 (Sat, 24 Nov 2012)
This commit is contained in:
2012-11-24 22:20:37 +01:00
parent 92d1786f49
commit 74da6f8b1d
2 changed files with 7 additions and 1 deletions

View File

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