X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=7f4ac4b87a88d807abada60336826c65dc58644f;hb=a87d05583cb7dffaf0e0f5eb9f9b2fc0bcf656e1;hp=682837a6864d92fc1cd1051ce8031faf77a61feb;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 682837a..7f4ac4b 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