CComponentsFooter: apply showButtonContour() after init of labels

Function was without effect after adding of button objects,
showButtonContour() now changes property explicit for all items, also
after their addition to chain.


Origin commit data
------------------
Commit: f7860fed35
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-02 (Fri, 02 May 2014)
This commit is contained in:
2014-05-02 00:32:32 +02:00
parent cb8060da8b
commit b1a8e0df28
2 changed files with 11 additions and 1 deletions

View File

@@ -187,3 +187,13 @@ void CComponentsFooter::setButtonLabel(const char *button_icon, const neutrino_l
setButtonLabel(button_icon, txt, chain_width, label_width);
}
void CComponentsFooter::showButtonContour(bool show)
{
btn_contour = show;
if (chain) {
for (size_t i= 0; i< chain->size(); i++)
chain->getCCItem(i)->doPaintBg(btn_contour);
}
}