X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftoggle.cpp;fp=source%2Ftoggle.cpp;h=d31ff9f320faac8b4f081c369366003684c64c25;hb=6081ed9020ad22214a8e5b3829092f97b12d7c71;hp=62f46eb52ac94b0ac212535c720a82937c45b13c;hpb=a87d05583cb7dffaf0e0f5eb9f9b2fc0bcf656e1;p=libs%2Fgltk.git diff --git a/source/toggle.cpp b/source/toggle.cpp index 62f46eb..d31ff9f 100644 --- a/source/toggle.cpp +++ b/source/toggle.cpp @@ -16,7 +16,7 @@ namespace GLtk { Toggle::Toggle(const Resources &r, const string &t): Widget(r), - text(style), + text(), pressed(false), value(false), exclusive(false) @@ -87,7 +87,7 @@ void Toggle::exclude_siblings() void Toggle::on_style_change() { - text.update_style(); + text.set_style(style); }