X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbutton.cpp;h=e7548386e0467cd6f8caec148973098b2fe7bffa;hb=6081ed9020ad22214a8e5b3829092f97b12d7c71;hp=292625de9f9e4bba00e6598f1ff1eed0d645c207;hpb=a87d05583cb7dffaf0e0f5eb9f9b2fc0bcf656e1;p=libs%2Fgltk.git diff --git a/source/button.cpp b/source/button.cpp index 292625d..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) { @@ -94,7 +94,7 @@ void Button::render_special(const Part &part) const void Button::on_style_change() { - text.update_style(); + text.set_style(style); }