mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user