X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=fba81665c2092a66cc057f5ff0f8882865b1f0ed;hb=a778810b6fa6feff8aff06bdf632623e7923537a;hp=8aeca21b7264c7f50d003af5b9af170b64458d82;hpb=91997dd3189b93a67179822ec2fed5f2a7bddb74;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 8aeca21..fba8166 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "indicator.h" namespace Msp { @@ -17,10 +10,7 @@ Indicator::Indicator() void Indicator::set_active(bool a) { - if(a) - state |= ACTIVE; - else - state &= ~ACTIVE; + set_state(ACTIVE, (a ? ACTIVE : NORMAL)); } } // namespace GLtk