X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flabel.cpp;h=a91f821406292d4672053782b79ce1b3f9b70bae;hb=6081ed9020ad22214a8e5b3829092f97b12d7c71;hp=2353385c1174c44f78b129a45b3c550eec79206b;hpb=75a16eae9eb2714f8112d46fa5b8f7908b6d2487;p=libs%2Fgltk.git diff --git a/source/label.cpp b/source/label.cpp index 2353385..a91f821 100644 --- a/source/label.cpp +++ b/source/label.cpp @@ -16,7 +16,7 @@ namespace GLtk { Label::Label(const Resources &r, const string &t): Widget(r), - text(style) + text() { focusable=false; update_style(); @@ -52,6 +52,11 @@ void Label::render_special(const Part &part) const text.render(part, geom); } +void Label::on_style_change() +{ + text.set_style(style); +} + Label::Loader::Loader(Label &l): Widget::Loader(l)