X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flabel.cpp;h=a91f821406292d4672053782b79ce1b3f9b70bae;hb=ef4660c4bdf38e126e13b426649fc2f997027b65;hp=ae821a81f0f6330dc42ac6c3f15ce18ac85d21d9;hpb=1e06dc208a02e68cf1bb127927e3ad5af3657c58;p=libs%2Fgltk.git diff --git a/source/label.cpp b/source/label.cpp index ae821a8..a91f821 100644 --- a/source/label.cpp +++ b/source/label.cpp @@ -16,8 +16,9 @@ namespace GLtk { Label::Label(const Resources &r, const string &t): Widget(r), - text(style) + text() { + focusable=false; update_style(); set_text(t); } @@ -51,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)