X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fselectable.h;h=2ffac879291d46ea4767a564e22cdf4dbf71a3c6;hb=d883d4623ab326b921e6a26d5ea47bf609bd4a85;hp=b4be7090e25609b695398244033607630d9a7694;hpb=be362ae53c1d191e23d8a084d0327044bce4544c;p=ardour.git diff --git a/gtk2_ardour/selectable.h b/gtk2_ardour/selectable.h index b4be7090e2..2ffac87929 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__ @@ -34,18 +33,14 @@ 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: bool _selected; };