]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/label.cpp
Make the Text class interface more obvious by not using a reference to pointer
[libs/gltk.git] / source / label.cpp
index 18bef1a066bb529274644a78cddfd92ec64a1c10..a91f821406292d4672053782b79ce1b3f9b70bae 100644 (file)
@@ -16,7 +16,7 @@ namespace GLtk {
 
 Label::Label(const Resources &r, const string &t):
        Widget(r),
-       text(style)
+       text()
 {
        focusable=false;
        update_style();
@@ -54,7 +54,7 @@ void Label::render_special(const Part &part) const
 
 void Label::on_style_change()
 {
-       text.update_style();
+       text.set_style(style);
 }