]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Loader improvements
[libs/gltk.git] / source / indicator.cpp
index 86c25247e28eee4d08e6e41938f58526317ee74c..8aeca21b7264c7f50d003af5b9af170b64458d82 100644 (file)
@@ -10,15 +10,17 @@ Distributed under the LGPL
 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