X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbutton.cpp;h=e7548386e0467cd6f8caec148973098b2fe7bffa;hb=ef4660c4bdf38e126e13b426649fc2f997027b65;hp=91cc88c403365bfabde2a9f943627bd0814c0325;hpb=900becb7550d179d169e7d049b3aef5e0c9b7758;p=libs%2Fgltk.git diff --git a/source/button.cpp b/source/button.cpp index 91cc88c..e754838 100644 --- a/source/button.cpp +++ b/source/button.cpp @@ -14,7 +14,7 @@ namespace GLtk { Button::Button(const Resources &r, const std::string &t): Widget(r), - text(style), + text(), icon(0), pressed(false) { @@ -92,6 +92,11 @@ void Button::render_special(const Part &part) const } } +void Button::on_style_change() +{ + text.set_style(style); +} + Button::Loader::Loader(Button &btn): Widget::Loader(btn)