X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=d0e75586b288098e812432e75e3db8dbee9fa21c;hb=0af3c2393bd00f39db3bfaf5b78a7a44f0fd5ff1;hp=86c25247e28eee4d08e6e41938f58526317ee74c;hpb=c2635c5a3dca6a6cea5562fd387beb0662b18cf0;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 86c2524..d0e7558 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -13,12 +13,16 @@ namespace GLtk { Indicator::Indicator(const Resources &r): Widget(r) { + focusable = false; update_style(); } void Indicator::set_active(bool a) { - state=(a ? ACTIVE : NORMAL); + if(a) + state |= ACTIVE; + else + state &= ~ACTIVE; } } // namespace GLtk