X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Findicator.cpp;h=d0e75586b288098e812432e75e3db8dbee9fa21c;hb=ae991f3bbd83fa0afff5e1fc31be50e1f2d17875;hp=682837a6864d92fc1cd1051ce8031faf77a61feb;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 682837a..d0e7558 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of libmspgltk +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include "indicator.h" namespace Msp { @@ -6,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