diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2010-04-03 08:40:21 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2010-04-03 08:40:21 +0000 |
commit | d166d0584f611d5e1ff85a5008e87c9e21e04952 (patch) | |
tree | 0c65a1adc2a56853434ea0cdc6532e64b0b3aec3 /libs/ardour/export_formats.cc | |
parent | 8a8552c4cb7c6ea6aa30675ab4fa39bae86a18cf (diff) |
Re-connect some signals in export format stuff
git-svn-id: svn://localhost/ardour2/branches/3.0@6853 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/export_formats.cc')
-rw-r--r-- | libs/ardour/export_formats.cc | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/libs/ardour/export_formats.cc b/libs/ardour/export_formats.cc index eb9be6183b..ef6bbe35bc 100644 --- a/libs/ardour/export_formats.cc +++ b/libs/ardour/export_formats.cc @@ -60,9 +60,11 @@ HasSampleFormat::add_sample_format (ExportFormatBase::SampleFormat format) SampleFormatPtr ptr (new SampleFormatState (format, get_sample_format_name (format))); sample_format_states.push_back (ptr); ptr->SelectChanged.connect_same_thread (*this, boost::bind (&HasSampleFormat::update_sample_format_selection, this, _1)); - // BOOST SIGNALS how to connect one signal to another - // ptr->SelectChanged.connect_same_thread (*this, boost::bind (SampleFormatSelectChanged, _1, WeakSampleFormatPtr (ptr)); - // ptr->CompatibleChanged.connect_same_thread (*this, boost::bind (SampleFormatCompatibleChanged, _1, WeakSampleFormatPtr (ptr)); + // BOOST SIGNALS Could this be made any uglier? + ptr->SelectChanged.connect_same_thread (*this, + boost::bind (boost::type<void> (), boost::ref (SampleFormatSelectChanged), _1, WeakSampleFormatPtr (ptr))); + ptr->CompatibleChanged.connect_same_thread (*this, + boost::bind (boost::type<void> (), boost::ref (SampleFormatCompatibleChanged), _1, WeakSampleFormatPtr (ptr))); } void @@ -71,9 +73,11 @@ HasSampleFormat::add_dither_type (ExportFormatBase::DitherType type, Glib::ustri DitherTypePtr ptr (new DitherTypeState (type, name)); dither_type_states.push_back (ptr); ptr->SelectChanged.connect_same_thread (*this, boost::bind (&HasSampleFormat::update_dither_type_selection, this, _1)); - // BOOST SIGNALS how to connect one signal to another - // ptr->SelectChanged.connect_same_thread (*this, boost::bind (DitherTypeSelectChanged, _1, WeakDitherTypePtr (ptr)); - // ptr->CompatibleChanged.connect_same_thread (*this, boost::bind (DitherTypeCompatibleChanged, _1, WeakDitherTypePtr (ptr)); + // BOOST SIGNALS Could this be made any uglier? + ptr->SelectChanged.connect_same_thread (*this, + boost::bind (boost::type<void> (), boost::ref (DitherTypeSelectChanged), _1, WeakDitherTypePtr (ptr))); + ptr->CompatibleChanged.connect_same_thread (*this, + boost::bind (boost::type<void> (),boost::ref ( DitherTypeCompatibleChanged), _1, WeakDitherTypePtr (ptr))); } HasSampleFormat::SampleFormatPtr |