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