X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.cpp;h=28b454d90d10c62ab589ae5e8daca9246bd044f8;hb=6081ed9020ad22214a8e5b3829092f97b12d7c71;hp=496a79d0da017421361126742ec9ad76ad6fcae9;hpb=a87d05583cb7dffaf0e0f5eb9f9b2fc0bcf656e1;p=libs%2Fgltk.git diff --git a/source/entry.cpp b/source/entry.cpp index 496a79d..28b454d 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -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); }