X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=8aeca21b7264c7f50d003af5b9af170b64458d82;hb=033732b500a35f3737bad515349d884cb3f123f0;hp=682837a6864d92fc1cd1051ce8031faf77a61feb;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 682837a..8aeca21 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -1,17 +1,26 @@ +/* $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(const Resources &r): - Widget(r) +Indicator::Indicator() { - update_style(); + focusable = false; } void Indicator::set_active(bool a) { - state=(a ? ACTIVE : NORMAL); + if(a) + state |= ACTIVE; + else + state &= ~ACTIVE; } } // namespace GLtk