X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fselectable.h;h=05c213116d6f7552b9ce2150b1c4c009132828c7;hb=28e67c897850514e4fa48f76f7aa845b09903e1d;hp=b4be7090e25609b695398244033607630d9a7694;hpb=be362ae53c1d191e23d8a084d0327044bce4544c;p=ardour.git diff --git a/gtk2_ardour/selectable.h b/gtk2_ardour/selectable.h index b4be7090e2..05c213116d 100644 --- a/gtk2_ardour/selectable.h +++ b/gtk2_ardour/selectable.h @@ -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 Selected ; - - protected: +protected: bool _selected; };