X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=f9f6ed51089640813df1281257e4b6fd69d46986;hb=4b52d16bc895f9d969383d7a7d6a3558c1972cc5;hp=682837a6864d92fc1cd1051ce8031faf77a61feb;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 682837a..f9f6ed5 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -3,15 +3,9 @@ namespace Msp { namespace GLtk { -Indicator::Indicator(const Resources &r): - Widget(r) -{ - update_style(); -} - void Indicator::set_active(bool a) { - state=(a ? ACTIVE : NORMAL); + set_state(ACTIVE, (a ? ACTIVE : NORMAL)); } } // namespace GLtk