X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Findicator.cpp;h=568aafddc9af7feb3d4e054bcc90c2a0a2a03125;hb=c8f5fd14a1fbdaaa9e1216dd5163d1f5c1b5ff27;hp=682837a6864d92fc1cd1051ce8031faf77a61feb;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 682837a..568aafd 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -3,15 +3,17 @@ 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