X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=fba81665c2092a66cc057f5ff0f8882865b1f0ed;hb=f0b600c3b1739f7e088da6ab8eb7c2e67adf592c;hp=682837a6864d92fc1cd1051ce8031faf77a61feb;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 682837a..fba8166 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -3,15 +3,14 @@ namespace Msp { namespace GLtk { -Indicator::Indicator(const Resources &r): - Widget(r) +Indicator::Indicator() { - update_style(); + focusable = false; } void Indicator::set_active(bool a) { - state=(a ? ACTIVE : NORMAL); + set_state(ACTIVE, (a ? ACTIVE : NORMAL)); } } // namespace GLtk