X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Findicator.cpp;h=8aeca21b7264c7f50d003af5b9af170b64458d82;hb=73afd124ab87e8bace98db55517a56c797a9b8c7;hp=86c25247e28eee4d08e6e41938f58526317ee74c;hpb=c2635c5a3dca6a6cea5562fd387beb0662b18cf0;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 86c2524..8aeca21 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -10,15 +10,17 @@ Distributed under the LGPL 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); + if(a) + state |= ACTIVE; + else + state &= ~ACTIVE; } } // namespace GLtk