]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Add getter for Panel::layout
[libs/gltk.git] / source / indicator.cpp
index 2debf35d01ee02d973f1170d6c98ad4fbe914e57..fba81665c2092a66cc057f5ff0f8882865b1f0ed 100644 (file)
@@ -1,27 +1,16 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "indicator.h"
 
 namespace Msp {
 namespace GLtk {
 
-Indicator::Indicator(const Resources &r):
-       Widget(r)
+Indicator::Indicator()
 {
-       update_style();
+       focusable = false;
 }
 
 void Indicator::set_active(bool a)
 {
-       if(a)
-               state|=ACTIVE;
-       else
-               state&=~ACTIVE;
+       set_state(ACTIVE, (a ? ACTIVE : NORMAL));
 }
 
 } // namespace GLtk