]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/indicator.cpp
Implement mouse wheel scrolling in List
[libs/gltk.git] / source / indicator.cpp
index 8aeca21b7264c7f50d003af5b9af170b64458d82..fba81665c2092a66cc057f5ff0f8882865b1f0ed 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "indicator.h"
 
 namespace Msp {
@@ -17,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