]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Add Text class with multiline support
[libs/gltk.git] / source / indicator.cpp
index 682837a6864d92fc1cd1051ce8031faf77a61feb..2debf35d01ee02d973f1170d6c98ad4fbe914e57 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of libmspgltk
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #include "indicator.h"
 
 namespace Msp {
@@ -11,7 +18,10 @@ Indicator::Indicator(const Resources &r):
 
 void Indicator::set_active(bool a)
 {
-       state=(a ? ACTIVE : NORMAL);
+       if(a)
+               state|=ACTIVE;
+       else
+               state&=~ACTIVE;
 }
 
 } // namespace GLtk