]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Add Widget::focusable flag
[libs/gltk.git] / source / indicator.cpp
index 86c25247e28eee4d08e6e41938f58526317ee74c..7f4ac4b87a88d807abada60336826c65dc58644f 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