X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=fba81665c2092a66cc057f5ff0f8882865b1f0ed;hb=c8291177b545ec81930603a5915234a60296db51;hp=7f4ac4b87a88d807abada60336826c65dc58644f;hpb=75a16eae9eb2714f8112d46fa5b8f7908b6d2487;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 7f4ac4b..fba8166 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -1,28 +1,16 @@ -/* $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() { - focusable=false; - update_style(); + focusable = false; } void Indicator::set_active(bool a) { - if(a) - state|=ACTIVE; - else - state&=~ACTIVE; + set_state(ACTIVE, (a ? ACTIVE : NORMAL)); } } // namespace GLtk