X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=fba81665c2092a66cc057f5ff0f8882865b1f0ed;hb=754751fd474c6eac073fa7e89a18142fc89cb4fb;hp=2debf35d01ee02d973f1170d6c98ad4fbe914e57;hpb=50bf1ef2e2c3c38de20f6996a6c5ed0066111177;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 2debf35..fba8166 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -1,27 +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() { - 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