]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Add an input method subsystem
[libs/gltk.git] / source / indicator.cpp
index 568aafddc9af7feb3d4e054bcc90c2a0a2a03125..f9f6ed51089640813df1281257e4b6fd69d46986 100644 (file)
@@ -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