fix eternal valgrind complaint about GainMeter::_width not being initialized; make GainMeterBase derive from sigc::trackable so that its slots are disconnected from signals when it is deleted

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3500 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2008-06-27 19:02:19 +00:00
parent f509da7043
commit d3dbad3933
2 changed files with 2 additions and 1 deletions

View file

@ -83,6 +83,7 @@ GainMeterBase::GainMeterBase (boost::shared_ptr<IO> io, Session& s,
meter_menu = 0;
next_release_selects = false;
style_changed = true;
_width = Wide;
if (horizontal) {
gain_slider = manage (new HSliderController (pix,

View file

@ -54,7 +54,7 @@ namespace Gtk {
class Menu;
}
class GainMeterBase
class GainMeterBase : virtual public sigc::trackable
{
public:
GainMeterBase (boost::shared_ptr<ARDOUR::IO>, ARDOUR::Session&, const Glib::RefPtr<Gdk::Pixbuf>& pix,