X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Findicator.cpp;h=f9f6ed51089640813df1281257e4b6fd69d46986;hb=4b52d16bc895f9d969383d7a7d6a3558c1972cc5;hp=568aafddc9af7feb3d4e054bcc90c2a0a2a03125;hpb=2b70e8801c43875ed3f4135bdd0141265cff0312;p=libs%2Fgltk.git diff --git a/source/indicator.cpp b/source/indicator.cpp index 568aafd..f9f6ed5 100644 --- a/source/indicator.cpp +++ b/source/indicator.cpp @@ -3,17 +3,9 @@ namespace Msp { namespace GLtk { -Indicator::Indicator() -{ - focusable = false; -} - void Indicator::set_active(bool a) { - if(a) - state |= ACTIVE; - else - state &= ~ACTIVE; + set_state(ACTIVE, (a ? ACTIVE : NORMAL)); } } // namespace GLtk