]> 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 f5037215592e1a45143ab8b305cf563007c7dbe0..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();
@@ -84,6 +84,11 @@ void Entry::render_special(const Part &part) const
        }
 }
 
+void Entry::on_style_change()
+{
+       text.set_style(style);
+}
+
 
 Entry::Loader::Loader(Entry &ent):
        Widget::Loader(ent)