CChannelList: adapt for new functionality in CComponents

Origin commit data
------------------
Branch: ni/coolstream
Commit: d0af8fb7bf
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-03 (Mon, 03 Sep 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2012-09-03 12:12:59 +02:00
parent e3c3a2669d
commit e0ac1d2d8e

View File

@@ -1994,16 +1994,15 @@ void CChannelList::paintHead()
if (clHead == NULL) { if (clHead == NULL) {
clHead = new CComponentsTitleBar(); clHead = new CComponentsTitleBar();
clHead->setDimensionsAll(x, y, width, theight); clHead->setDimensionsAll(x, y, width, theight);
clHead->addElement(CC_ALIGN_LEFT, CC_ITEMBOX_TEXT, name); clHead->addText(name);
clHead->addElement(CC_ALIGN_RIGHT, CC_ITEMBOX_ICON, NEUTRINO_ICON_BUTTON_INFO); clHead->addIcon(NEUTRINO_ICON_BUTTON_INFO, CC_ALIGN_RIGHT);
clHead->addElement(CC_ALIGN_RIGHT, CC_ITEMBOX_ICON, NEUTRINO_ICON_BUTTON_MENU); clHead->addIcon(NEUTRINO_ICON_BUTTON_MENU, CC_ALIGN_RIGHT);
if (g_settings.channellist_new_zap_mode) if (g_settings.channellist_new_zap_mode)
clHead->addElement(CC_ALIGN_RIGHT, CC_ITEMBOX_ICON, this->new_mode_active ? clHead->addIcon(this->new_mode_active ? NEUTRINO_ICON_BUTTON_MUTE_ZAP_ACTIVE : NEUTRINO_ICON_BUTTON_MUTE_ZAP_INACTIVE, CC_ALIGN_RIGHT);
NEUTRINO_ICON_BUTTON_MUTE_ZAP_ACTIVE : NEUTRINO_ICON_BUTTON_MUTE_ZAP_INACTIVE); clHead->addClock();
clHead->addElement(CC_ALIGN_RIGHT, CC_ITEMBOX_CLOCK); clHead->addPicture("", CC_ALIGN_RIGHT, &indexLogo);
clHead->addElement(CC_ALIGN_RIGHT, CC_ITEMBOX_PICTURE, "", &indexLogo);
} }
clHead->paint(); clHead->paint();
} }