]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Add an input method subsystem
[libs/gltk.git] / source / indicator.cpp
index 8aeca21b7264c7f50d003af5b9af170b64458d82..f9f6ed51089640813df1281257e4b6fd69d46986 100644 (file)
@@ -1,26 +1,11 @@
-/* $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()
-{
-       focusable = false;
-}
-
 void Indicator::set_active(bool a)
 {
-       if(a)
-               state |= ACTIVE;
-       else
-               state &= ~ACTIVE;
+       set_state(ACTIVE, (a ? ACTIVE : NORMAL));
 }
 
 } // namespace GLtk