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