]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/entry.cpp
Make the Text class interface more obvious by not using a reference to pointer
[libs/gltk.git] / source / entry.cpp
index 496a79d0da017421361126742ec9ad76ad6fcae9..28b454d90d10c62ab589ae5e8daca9246bd044f8 100644 (file)
@@ -21,7 +21,7 @@ namespace GLtk {
 
 Entry::Entry(const Resources &r, const string &t):
        Widget(r),
-       text(style),
+       text(),
        edit_pos(0)
 {
        update_style();
@@ -86,7 +86,7 @@ void Entry::render_special(const Part &part) const
 
 void Entry::on_style_change()
 {
-       text.update_style();
+       text.set_style(style);
 }