[DEV] Set label directly on the property

This commit is contained in:
Edouard DUPIN 2016-03-15 21:35:12 +01:00
parent 5ebfea1c27
commit c2b77dea53

View File

@ -106,7 +106,13 @@ ewol::widget::ButtonShared ewol::widget::StdPopUp::addButton(const std::string&
EWOL_ERROR("Can not allocate new button ...");
return nullptr;
}
myButton->setSubWidget(ewol::widget::Label::create("value", _text));
ewol::widget::LabelShared myLabel = ewol::widget::Label::create();
if (myLabel == nullptr) {
EWOL_ERROR("Can not allocate new label ...");
return nullptr;
}
myLabel->propertyValue.set(_text);
myButton->setSubWidget(myLabel);
if(_autoExit == true) {
myButton->signalPressed.connect(shared_from_this(), &ewol::widget::StdPopUp::onCallBackButtonExit);
}