X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=f9f6ed51089640813df1281257e4b6fd69d46986;hb=4b52d16bc895f9d969383d7a7d6a3558c1972cc5;hp=d0e75586b288098e812432e75e3db8dbee9fa21c;hpb=0af3c2393bd00f39db3bfaf5b78a7a44f0fd5ff1;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index d0e7558..f9f6ed5 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -1,28 +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(const Resources &r): - Widget(r) -{ - focusable = false; - update_style(); -} - void Indicator::set_active(bool a) { - if(a) - state |= ACTIVE; - else - state &= ~ACTIVE; + set_state(ACTIVE, (a ? ACTIVE : NORMAL)); } } // namespace GLtk