]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Style update: add spaces around assignments
[libs/gltk.git] / source / indicator.cpp
index 86c25247e28eee4d08e6e41938f58526317ee74c..d0e75586b288098e812432e75e3db8dbee9fa21c 100644 (file)
@@ -13,12 +13,16 @@ namespace GLtk {
 Indicator::Indicator(const Resources &r):
        Widget(r)
 {
+       focusable = false;
        update_style();
 }
 
 void Indicator::set_active(bool a)
 {
-       state=(a ? ACTIVE : NORMAL);
+       if(a)
+               state |= ACTIVE;
+       else
+               state &= ~ACTIVE;
 }
 
 } // namespace GLtk