mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsButton: get image path from framebuffer
Buttons didn't get icons from custom path e.g. /var/tuxbox/icons This should fix this.
This commit is contained in:
@@ -144,7 +144,7 @@ void CComponentsButton::initIcon()
|
|||||||
//initialize icon object
|
//initialize icon object
|
||||||
string::size_type pos = cc_btn_icon.find("/", 0);
|
string::size_type pos = cc_btn_icon.find("/", 0);
|
||||||
if (pos == string::npos)
|
if (pos == string::npos)
|
||||||
cc_btn_icon = frameBuffer->getIconBasePath() + "/" + cc_btn_icon + ".png";
|
cc_btn_icon = frameBuffer->getIconPath(cc_btn_icon);
|
||||||
|
|
||||||
if (cc_btn_icon_obj == NULL){
|
if (cc_btn_icon_obj == NULL){
|
||||||
cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, 0, cc_btn_icon, this);
|
cc_btn_icon_obj = new CComponentsPictureScalable(fr_thickness, 0, cc_btn_icon, this);
|
||||||
|
Reference in New Issue
Block a user