X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=2debf35d01ee02d973f1170d6c98ad4fbe914e57;hb=3d04d550b8ba1336c36f569d924b6b425bfc47f3;hp=682837a6864d92fc1cd1051ce8031faf77a61feb;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 682837a..2debf35 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 { @@ -11,7 +18,10 @@ Indicator::Indicator(const Resources &r): void Indicator::set_active(bool a) { - state=(a ? ACTIVE : NORMAL); + if(a) + state|=ACTIVE; + else + state&=~ACTIVE; } } // namespace GLtk