do not reset session for MonitorSection just because monitor out was removed
[ardour.git] / gtk2_ardour / selectable.h
index b4be7090e25609b695398244033607630d9a7694..05c213116d6f7552b9ce2150b1c4c009132828c7 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2004 Paul Davis 
+    Copyright (C) 2004 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_gtk_selectable_h__
@@ -25,7 +24,7 @@
 
 class Selectable : public virtual sigc::trackable
 {
-  public:
+public:
        Selectable() {
                _selected = false;
        }
@@ -34,19 +33,15 @@ class Selectable : public virtual sigc::trackable
 
        virtual void set_selected (bool yn) {
                if (yn != _selected) {
-                       _selected = true;
-                       Selected (_selected); /* EMIT_SIGNAL */
+                       _selected = yn;
                }
        }
 
-       bool get_selected() const {
+       virtual bool selected() const {
                return _selected;
        }
 
-       /** Emitted when the selected status of this Selectable changes */
-       sigc::signal<void, bool> Selected ;
-
-  protected:
+protected:
        bool _selected;
 };