]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Report non-basic variables in Layout::LinearProgram as having zero value
[libs/gltk.git] / source / indicator.cpp
index 682837a6864d92fc1cd1051ce8031faf77a61feb..568aafddc9af7feb3d4e054bcc90c2a0a2a03125 100644 (file)
@@ -3,15 +3,17 @@
 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