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