]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Add a persistent view size attribute to List
[libs/gltk.git] / source / indicator.cpp
index 568aafddc9af7feb3d4e054bcc90c2a0a2a03125..fba81665c2092a66cc057f5ff0f8882865b1f0ed 100644 (file)
@@ -10,10 +10,7 @@ Indicator::Indicator()
 
 void Indicator::set_active(bool a)
 {
-       if(a)
-               state |= ACTIVE;
-       else
-               state &= ~ACTIVE;
+       set_state(ACTIVE, (a ? ACTIVE : NORMAL));
 }
 
 } // namespace GLtk