remove using namespace sigc everywhere to ensure clarity over which bind/mem_fun...
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 12 Dec 2009 15:02:15 +0000 (15:02 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 12 Dec 2009 15:02:15 +0000 (15:02 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6357 d708f5d6-7413-0410-9779-e7cbd77b26cf

122 files changed:
gtk2_ardour/about.cc
gtk2_ardour/actions.cc
gtk2_ardour/add_midi_cc_track_dialog.cc
gtk2_ardour/add_route_dialog.cc
gtk2_ardour/ardour_dialog.cc
gtk2_ardour/ardour_ui.cc
gtk2_ardour/ardour_ui2.cc
gtk2_ardour/ardour_ui_dependents.cc
gtk2_ardour/ardour_ui_ed.cc
gtk2_ardour/ardour_ui_options.cc
gtk2_ardour/audio_clock.cc
gtk2_ardour/audio_region_editor.cc
gtk2_ardour/audio_region_view.cc
gtk2_ardour/automation_controller.cc
gtk2_ardour/automation_line.cc
gtk2_ardour/control_point.cc
gtk2_ardour/crossfade_edit.cc
gtk2_ardour/crossfade_view.cc
gtk2_ardour/editor.cc
gtk2_ardour/editor_actions.cc
gtk2_ardour/editor_audio_import.cc
gtk2_ardour/editor_canvas.cc
gtk2_ardour/editor_canvas_events.cc
gtk2_ardour/editor_component.cc
gtk2_ardour/editor_cursors.cc
gtk2_ardour/editor_drag.cc
gtk2_ardour/editor_imageframe.cc
gtk2_ardour/editor_keys.cc
gtk2_ardour/editor_markers.cc
gtk2_ardour/editor_mouse.cc
gtk2_ardour/editor_nudge.cc
gtk2_ardour/editor_ops.cc
gtk2_ardour/editor_regions.cc
gtk2_ardour/editor_route_groups.cc
gtk2_ardour/editor_routes.cc
gtk2_ardour/editor_rulers.cc
gtk2_ardour/editor_selection.cc
gtk2_ardour/editor_selection_list.cc
gtk2_ardour/editor_snapshots.cc
gtk2_ardour/editor_summary.cc
gtk2_ardour/editor_tempodisplay.cc
gtk2_ardour/editor_timefx.cc
gtk2_ardour/gain_meter.cc
gtk2_ardour/generic_pluginui.cc
gtk2_ardour/imageframe_socket_handler.cc
gtk2_ardour/imageframe_time_axis.cc
gtk2_ardour/imageframe_view.cc
gtk2_ardour/itest.cc
gtk2_ardour/latency_gui.cc
gtk2_ardour/level_meter.cc
gtk2_ardour/main.cc
gtk2_ardour/marker_time_axis.cc
gtk2_ardour/marker_view.cc
gtk2_ardour/midi_channel_selector.cc
gtk2_ardour/midi_port_dialog.cc
gtk2_ardour/midi_region_view.cc
gtk2_ardour/midi_time_axis.cc
gtk2_ardour/mixer_strip.cc
gtk2_ardour/mixer_ui.cc
gtk2_ardour/mtest.cc
gtk2_ardour/option_editor.cc
gtk2_ardour/panner2d.cc
gtk2_ardour/panner_ui.cc
gtk2_ardour/playlist_selector.cc
gtk2_ardour/plugin_ui.cc
gtk2_ardour/port_matrix.cc
gtk2_ardour/processor_box.cc
gtk2_ardour/rc_option_editor.cc
gtk2_ardour/region_selection.cc
gtk2_ardour/region_view.cc
gtk2_ardour/route_params_ui.cc
gtk2_ardour/route_processor_selection.cc
gtk2_ardour/route_time_axis.cc
gtk2_ardour/route_ui.cc
gtk2_ardour/selection.cc
gtk2_ardour/session_option_editor.cc
gtk2_ardour/streamview.cc
gtk2_ardour/tape_region_view.cc
gtk2_ardour/time_axis_view.cc
gtk2_ardour/time_fx_dialog.cc
gtk2_ardour/utils.cc
gtk2_ardour/visual_time_axis.cc
libs/ardour/analyser.cc
libs/ardour/ardour/configuration.h
libs/ardour/ardour/rc_configuration.h
libs/ardour/ardour/session_configuration.h
libs/ardour/audio_diskstream.cc
libs/ardour/audio_playlist.cc
libs/ardour/audio_track.cc
libs/ardour/audioregion.cc
libs/ardour/auditioner.cc
libs/ardour/automation_list.cc
libs/ardour/control_protocol_manager.cc
libs/ardour/delivery.cc
libs/ardour/diskstream.cc
libs/ardour/internal_return.cc
libs/ardour/internal_send.cc
libs/ardour/io.cc
libs/ardour/jack_slave.cc
libs/ardour/location.cc
libs/ardour/midi_clock_slave.cc
libs/ardour/midi_diskstream.cc
libs/ardour/midi_patch_manager.cc
libs/ardour/midi_playlist.cc
libs/ardour/midi_track.cc
libs/ardour/midi_ui.cc
libs/ardour/mtc_slave.cc
libs/ardour/playlist.cc
libs/ardour/rc_configuration.cc
libs/ardour/region.cc
libs/ardour/route.cc
libs/ardour/route_group.cc
libs/ardour/session.cc
libs/ardour/session_configuration.cc
libs/ardour/session_midi.cc
libs/ardour/session_playlists.cc
libs/ardour/session_state.cc
libs/ardour/session_transport.cc
libs/ardour/sndfilesource.cc
libs/ardour/ticker.cc
libs/pbd/pbd/ui_callback.h
libs/surfaces/osc/osc.cc

index 400c3f2a45a46cafc2fc1ac0a158ff9025b3e60b..2519e767bd3864b61f3779513cf77fac11a3a6b8 100644 (file)
@@ -44,7 +44,6 @@
 using namespace Gtk;
 using namespace Gdk;
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 
index b99fe791357f369640248059a4d3b395366da76c..5836a4c2011579671494d4f47d566aba6b880f86 100644 (file)
@@ -44,7 +44,6 @@
 using namespace std;
 using namespace Gtk;
 using namespace Glib;
-using namespace sigc;
 using namespace PBD;
 using namespace ARDOUR;
 
index 455a9f7715321974b36af5c42c0af75c3ed0f56c..2b1fa21d1fb7219eceeb01c8d45b0d6f37595653 100644 (file)
@@ -31,7 +31,6 @@
 #include "i18n.h"
 
 using namespace Gtk;
-using namespace sigc;
 using namespace std;
 using namespace PBD;
 using namespace ARDOUR;
index 219af4c1de8c501bfde96d7d0dde3c5cb681bb9a..a828caeb92b8c58ee5d0c07d1b73e173432c68ba 100644 (file)
@@ -40,7 +40,6 @@
 
 using namespace Gtk;
 using namespace Gtkmm2ext;
-using namespace sigc;
 using namespace std;
 using namespace PBD;
 using namespace ARDOUR;
index bde0d4484e1a77f234cbf79f5ebf25ae73177e3a..cafb356d60d4e16378dcb0ffb5c75cb49985e2b0 100644 (file)
@@ -30,7 +30,6 @@
 #include "utils.h"
 
 using namespace std;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 
index 44f9b9442e6390464d5504ea43c0f0dffaaa0a50..9086bde940c67f40a5dd232e27a1821f683cfc2a 100644 (file)
@@ -103,7 +103,6 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
-using namespace sigc;
 
 ARDOUR_UI *ARDOUR_UI::theArdourUI = 0;
 UIConfiguration *ARDOUR_UI::ui_config = 0;
@@ -410,7 +409,8 @@ ARDOUR_UI::post_engine ()
        update_sample_rate (engine->frame_rate());
 
        Config->ParameterChanged.connect (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
-       Config->map_parameters (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
+       boost::function<void (string)> pc (boost::bind (&ARDOUR_UI::parameter_changed, this, _1));
+       Config->map_parameters (pc);
 
        /* now start and maybe save state */
 
index 9b0674e34769a74e7a5896bb2791fbfdd1c82031..97fb9c742a2077f0e92fc8a77a701eb403c32a0a 100644 (file)
@@ -54,7 +54,6 @@ using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
 using namespace Glib;
-using namespace sigc;
 
 int
 ARDOUR_UI::setup_windows ()
@@ -463,7 +462,7 @@ ARDOUR_UI::_auditioning_changed (bool onoff)
 void
 ARDOUR_UI::auditioning_changed (bool onoff)
 {
-       UI::instance()->call_slot(sigc::bind (sigc::mem_fun(*this, &ARDOUR_UI::_auditioning_changed), onoff));
+       UI::instance()->call_slot (boost::bind (&ARDOUR_UI::_auditioning_changed, this, onoff));
 }
 
 void
@@ -878,7 +877,8 @@ ARDOUR_UI::set_transport_sensitivity (bool yn)
 void
 ARDOUR_UI::editor_realized ()
 {
-       Config->map_parameters (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
+       boost::function<void (string)> pc (boost::bind (&ARDOUR_UI::parameter_changed, this, _1));
+       Config->map_parameters (pc);
 
        set_size_request_to_display_given_text (speed_display_box, _("-0.55"), 2, 2);
        reset_dpi ();
index 009afe26ca89b4f41ddc70d05eb5503c5971ce6a..d02fd41defca0c66abcd7596eea1a3b10a3009f6 100644 (file)
@@ -36,7 +36,6 @@
 #include "opts.h"
 #include "i18n.h"
 
-using namespace sigc;
 using namespace Gtk;
 using namespace PBD;
 
index c0e9fa1fa5c9ac976605836e87f3079531ae69c9..f8bf0a2be42b27d85d300cfab464602261630820 100644 (file)
@@ -60,7 +60,6 @@ using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
 using namespace Glib;
-using namespace sigc;
 
 int
 ARDOUR_UI::create_editor ()
index 6efca69c1b93d3ef6913229be18dcae208374f4d..592750a81b18cfe77052b6a583def9ae07d8e57b 100644 (file)
@@ -45,7 +45,6 @@ using namespace Gtk;
 using namespace Gtkmm2ext;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 
 void
 ARDOUR_UI::toggle_external_sync()
@@ -272,7 +271,8 @@ void
 ARDOUR_UI::setup_session_options ()
 {
        session->config.ParameterChanged.connect (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
-       session->config.map_parameters (sigc::mem_fun (*this, &ARDOUR_UI::parameter_changed));
+       boost::function<void (std::string)> pc (boost::bind (&ARDOUR_UI::parameter_changed, this, _1));
+       session->config.map_parameters (pc);
 }
 
 #if 0
index 347a3f68483c827ea10b8445c8f19d44a830c4e3..68df057b953ed903779c35a373e236f01b92b3df 100644 (file)
@@ -39,7 +39,6 @@
 
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 using namespace std;
 
index 361ec8b08d17e1ab379b79b4e7aafc41ee870e7b..ade0b8edb935b611444d2c43c836fd28a0314b37 100644 (file)
@@ -38,7 +38,6 @@
 
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace std;
 using namespace Gtkmm2ext;
 
index 86e49efadac2fec84c41f95f3d3c43d3eb775738..682287bf596c87198259c6a117724bb96ed865a8 100644 (file)
@@ -58,7 +58,6 @@
 #define MUTED_ALPHA 10
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Editing;
@@ -983,7 +982,7 @@ AudioRegionView::create_one_wave (uint32_t which, bool /*direct*/)
 void
 AudioRegionView::peaks_ready_handler (uint32_t which)
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::bind (sigc::mem_fun(*this, &AudioRegionView::create_one_wave), which, false));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&AudioRegionView::create_one_wave, this, which, false));
        // cerr << "AudioRegionView::peaks_ready_handler() called on " << which << " this: " << this << endl;
 }
 
index e25c7e42e15da02d428e2cd688a661f5f7478910..08b3f001cd9776da72165ad2386be199706f596a 100644 (file)
@@ -147,7 +147,6 @@ AutomationController::automation_state_changed ()
 void
 AutomationController::value_changed ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (
-                       sigc::mem_fun(*this, &AutomationController::display_effective_value));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&AutomationController::display_effective_value, this));
 }
 
index 77a002d57008434919173f06d28e815249f5585e..f56ca898ce2750f2d739e5b5c64716a1856e0d66 100644 (file)
@@ -50,7 +50,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Editing;
@@ -115,7 +114,7 @@ AutomationLine::queue_reset ()
 {
        if (!update_pending) {
                update_pending = true;
-               Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &AutomationLine::reset));
+               Gtkmm2ext::UI::instance()->call_slot (boost::bind (&AutomationLine::reset, this));
        }
 }
 
index d4821495072f44aab1c4b6c419aa272114b11c23..78a3dc57d503740f99b266c3ffbcc9129be0f825 100644 (file)
@@ -26,7 +26,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gnome; // for Canvas
index 4f0bbb702b22d4028fa42f65dedc513b476d7287..4c9b8b7537db4fb3662866c47618292d2c7ec7b9 100644 (file)
@@ -54,7 +54,6 @@ using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
-using namespace sigc;
 using namespace Editing;
 
 using Gtkmm2ext::Keyboard;
index 8356ca7de4b4690db309768b8ea0904c8bdd6d18..2df4cd09829c4920c5836d21ddf495f28d0b886b 100644 (file)
@@ -33,7 +33,6 @@
 #include "canvas_impl.h"
 #include "ardour_ui.h"
 
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Editing;
index d0be4161d1f6cdfff038f9affc71aa257ee2c411..41f5cc4a587c90734ec1b2cd3db07d59638d9ee3 100644 (file)
 #endif
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
@@ -1132,8 +1131,9 @@ Editor::connect_to_session (Session *t)
                loc->set_name (_("Punch"));
        }
 
-       Config->map_parameters (sigc::mem_fun (*this, &Editor::parameter_changed));
-       session->config.map_parameters (sigc::mem_fun (*this, &Editor::parameter_changed));
+       boost::function<void (string)> pc (boost::bind (&Editor::parameter_changed, this, _1));
+       Config->map_parameters (pc);
+       session->config.map_parameters (pc);
 
        session->StateSaved.connect (sigc::mem_fun(*this, &Editor::session_state_saved));
 
index 7e2a8b340d66d19f445005495d324c8b772e462b..bc7d5ee7affeb322b85f1722b827ec85223687b1 100644 (file)
@@ -40,7 +40,6 @@
 using namespace Gtk;
 using namespace Glib;
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Editing;
index b61668ab28f13a9392c15087c7e02aea43926d15..6ae445d828d28d8341ca4d6fe4875d31f19dc2d0 100644 (file)
@@ -63,7 +63,6 @@
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 using namespace Editing;
index 1c1ddceedb38cafb64a7a02405232024c29321a9..97df092faaed6f43b9bc0aeb536dd32e5058bc21 100644 (file)
@@ -49,7 +49,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index db4dcac1f3f06659698bbad67cdcef3540ac3c1f..24b2e646a6bc78fe1841119335de628a05dde5fd 100644 (file)
@@ -52,7 +52,6 @@
 
 #include "i18n.h"
 
-using namespace sigc;
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
index 2032f62f14159d7f197cb825566318b24c76606a..149ce6717cc03cf0a99008ec71dd6b35cf661086 100644 (file)
@@ -21,7 +21,6 @@
 #include "editor_component.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 
 EditorComponent::EditorComponent (Editor* e)
@@ -42,7 +41,7 @@ EditorComponent::connect_to_session (Session* s)
 void
 EditorComponent::session_going_away ()
 {
-       for (list<connection>::iterator i = _session_connections.begin(); i != _session_connections.end(); ++i) {
+       for (list<sigc::connection>::iterator i = _session_connections.begin(); i != _session_connections.end(); ++i) {
                i->disconnect ();
        }
 
index b304b9cfc7fa5eaadbcd4e84104a3deac6958169..89d2fcbaa1aa2b4949797d122f9b0bfcf75cdb00 100644 (file)
@@ -25,7 +25,6 @@
 #include "utils.h"
 #include "editor.h"
 
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index 68a73fef7b6096a0c1f42020631893adcfe42fda..a78ee144d225bfd9e731de679bc12366227bda60 100644 (file)
@@ -43,7 +43,6 @@
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 using namespace Editing;
 using namespace ArdourCanvas;
index 2de23ec7f4a8413f4fda2d38f94725b31e21fc79..3e99f9e6bfed9546f7e70f181a932f38c769e636 100644 (file)
@@ -74,7 +74,7 @@ Editor::add_imageframe_time_axis(const string & track_name, void* src)
        }
        else
        {
-               Gtkmm2ext::UI::instance()->call_slot(sigc::bind(sigc::mem_fun(*this, &Editor::handle_new_imageframe_time_axis_view),track_name, src)) ;
+               Gtkmm2ext::UI::instance()->call_slot (boost::bind (&Editor::handle_new_imageframe_time_axis_view, this,track_name, src));
        }
 }
 
@@ -132,7 +132,7 @@ Editor::add_imageframe_marker_time_axis(const string & track_name, TimeAxisView*
        // Can we only sigc::bind 2 data Items?
        // @todo we really want to sigc::bind the src attribute too, for the moment tracks can only be added remotely,
        //       so this is not too much of an issue, however will need to be looked at again
-       Gtkmm2ext::UI::instance()->call_slot(sigc::bind(sigc::mem_fun(*this, &Editor::handle_new_imageframe_marker_time_axis_view),track_name, marked_track)) ;
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&Editor::handle_new_imageframe_marker_time_axis_view, this, track_name, marked_track));
 }
 
 void
index a31711a4d07e439df0edb60a9f76fad45e1792b3..cbbe11f37b76948b215eb91a026fd22d9e0d54fe 100644 (file)
@@ -37,7 +37,6 @@
 
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 
 void
 Editor::keyboard_selection_finish (bool add)
index e7ef08cfb473cd65471dbbc54fcdd6078179c86d..fa9fd83cc2056cc19b708038bcbf27aa92a6282e 100644 (file)
@@ -41,7 +41,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index 452c90989161623fc5379968437b4ff1f45113be..78e5e9a1452259b58da78012c9d16d05920f56b7 100644 (file)
@@ -76,7 +76,6 @@
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 using namespace Editing;
 using Gtkmm2ext::Keyboard;
index a6961d43cd8f5e85c13f8abc57b427aa776d1b54..7d6aa5b904f25bc3c0bd020a3caa6917e95e2181 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "i18n.h"
 
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index b652da58e3fd8c38839eaa352bf4166a8bf34ca2..ae4942c169eed38e5aa2c3c1b5601d85f0718e02 100644 (file)
@@ -84,7 +84,6 @@
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 using namespace Editing;
index f3a710416e824cd9586b3db546140c5fba2b096e..8aa6d94192977aa1727ddc411fa63b79137c50ba 100644 (file)
@@ -46,7 +46,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
@@ -1097,7 +1096,7 @@ EditorRegions::reset_sort_direction (bool up)
 }
 
 void
-EditorRegions::selection_mapover (slot<void,boost::shared_ptr<Region> > sl)
+EditorRegions::selection_mapover (sigc::slot<void,boost::shared_ptr<Region> > sl)
 {
        Glib::RefPtr<TreeSelection> selection = _display.get_selection();
        TreeView::Selection::ListHandle_Path rows = selection->get_selected_rows ();
index d0f5a200eeea965299b382c0ab9b6ba0d7554197..16bba4955bff3aed46df0141e91c08575d308d6a 100644 (file)
@@ -42,7 +42,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index 9f091867ebc963558948c01f4e0ff7d7531b5fc1..de6b081fd423121d4434bd7a552289aab96f0395 100644 (file)
@@ -49,7 +49,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index 6065e1f7857675c97eda455074bb952ad2402639..be806eb36620c5a52bb349ea117b60face61b710 100644 (file)
@@ -41,7 +41,6 @@
 
 #include "i18n.h"
 
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index 8d5590fe89fef17867d345120e1485014e33dad3..27f4fe6c69719c5104389d4eb53ea24013c35aa1 100644 (file)
@@ -40,7 +40,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
@@ -314,7 +313,7 @@ Editor::get_relevant_tracks (set<RouteTimeAxisView*>& relevant_tracks) const
  */
 
 void
-Editor::mapover_tracks (slot<void, RouteTimeAxisView&, uint32_t> sl, TimeAxisView* basis, RouteGroup::Property prop) const
+Editor::mapover_tracks (sigc::slot<void, RouteTimeAxisView&, uint32_t> sl, TimeAxisView* basis, RouteGroup::Property prop) const
 {
        RouteTimeAxisView* route_basis = dynamic_cast<RouteTimeAxisView*> (basis);
        if (route_basis == 0) {
index ddf73b8e4eb08bde196e0253f0572dce50f23fb8..f3d11343bc11096d9f790cd9d3b68375588d48f2 100644 (file)
@@ -39,7 +39,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
@@ -48,7 +47,7 @@ using namespace Gtkmm2ext;
 void
 Editor::handle_new_named_selection ()
 {
-       ARDOUR_UI::instance()->call_slot (sigc::mem_fun(*this, &Editor::redisplay_named_selections));
+       ARDOUR_UI::instance()->call_slot (boost::bind (&Editor::redisplay_named_selections, this));
 }
 
 void
index 0c69bf14fa8c770161fcb231d823d410648a25e4..8b544508d70d0541ea1de3bbb4d463655a4c12cf 100644 (file)
@@ -30,7 +30,6 @@
 #include "prompter.h"
 
 using namespace std;
-using namespace sigc;
 using namespace PBD;
 using namespace Gtk;
 using namespace ARDOUR;
index 7926490a05045e5f8269a2c5aebf2ef03773358f..9fc0b1119f4e2e8ffeb7822a1b8ca0f4bdfb7ad9 100644 (file)
@@ -28,7 +28,6 @@
 #include "keyboard.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using Gtkmm2ext::Keyboard;
 
index 5bec1d0f7b7f397ed9fbb93ed0e3c00c2bbd3834..7fecf61be35a00e9916e62ed9245e85a22b5be09 100644 (file)
@@ -49,7 +49,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index e8aa0e9e47f656f81dccf337b739e84f4763cf7f..8538c7b8b3c79548a68e7188399357aefca6847e 100644 (file)
@@ -55,7 +55,6 @@ using namespace RubberBand;
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 
index be6687f380ba4b5748672d6bc0387d4e48788d41..950071ba1300083d72ec93243a6b0e139adceeca 100644 (file)
@@ -56,7 +56,6 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
-using namespace sigc;
 using namespace std;
 using Gtkmm2ext::Keyboard;
 
@@ -438,7 +437,7 @@ GainMeterBase::effective_gain_display ()
 void
 GainMeterBase::gain_changed ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &GainMeterBase::effective_gain_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&GainMeterBase::effective_gain_display, this));
 }
 
 void
index 5625393d4c6693a2edb86fe51e755e284bb0ef10..dc8307eecb8704730243df2388203e396b0179f6 100644 (file)
@@ -62,7 +62,6 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
-using namespace sigc;
 
 GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrollable)
        : PlugUIBase (pi),
@@ -662,7 +661,7 @@ GenericPluginUI::parameter_changed (ControlUI* cui)
 {
        if (!cui->update_pending) {
                cui->update_pending = true;
-               Gtkmm2ext::UI::instance()->call_slot (sigc::bind (sigc::mem_fun(*this, &GenericPluginUI::update_control_display), cui));
+               Gtkmm2ext::UI::instance()->call_slot (boost::bind (&GenericPluginUI::update_control_display, this, cui));
        }
 }
 
index 08493fb7f05744bcd6477602f0edf492fb5a23cc..3d85eda5d4cb657c869f84c6ad8a3f6179b63673 100644 (file)
@@ -50,7 +50,6 @@
 
 using namespace std;
 using namespace ardourvis ;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 
index 47b56dff64b9f7410e0f7efe7df7a73d90563552..91a4b768fded8eda489277f9c76c91aec4b07d8c 100644 (file)
@@ -47,7 +47,6 @@
 
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 
 /**
index 9c1e3d2273d82f007b2d9fdd4d00a97b445f4d09..65d091804ac88a55c3ae5fc46f7e9960c1b85aed 100644 (file)
@@ -34,7 +34,6 @@
 #include "canvas_impl.h"
 #include "gui_thread.h"
 
-using namespace sigc ;
 using namespace ARDOUR ;
 using namespace Gtk;
 
index 0622d511403803f8b8e3473830e15673a8b5d363..ec6925ce26e4e08b1d69faf3fcf833a15c9f9642 100644 (file)
@@ -35,7 +35,6 @@
 #include <jack/jack.h>
 
 using namespace std;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 using namespace Glib;
index e5eab6201b83013ee27df0bdbd8812c723b68907..849edae767dfa726499e5da887dd0b036083ca2c 100644 (file)
@@ -12,7 +12,6 @@
 using namespace PBD;
 using namespace Gtk;
 using namespace Gtkmm2ext;
-using namespace sigc;
 using namespace ARDOUR;
 
 
index 78babf4bb31c47b04bfe5d21e300b67580c94739..3ddc9d2f9429da460541ed6e9a60e12652cd2ca7 100644 (file)
@@ -47,7 +47,6 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
-using namespace sigc;
 using namespace std;
 
 //sigc::signal<void> LevelMeter::ResetAllPeakDisplays;
index 1b09e635e2e493bfe47c3814c9b66da8a01db8b4..6ad5d245d8bd14565bc349ccbfab2c4c39b82c2e 100644 (file)
@@ -55,7 +55,6 @@ using namespace Gtk;
 using namespace ARDOUR_COMMAND_LINE;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 
 TextReceiver text_receiver ("ardour");
 
index 928242a78e1f8ab6bf66e9c188f79588526ff1ba..9dea703dfd2574e695707cbec8c7f361f0e595cd 100644 (file)
@@ -42,7 +42,6 @@
 
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 
 //---------------------------------------------------------------------------------------//
index 7700c8436f0e3fde21034be9d2a80bbd818dda75..60a8cb26dbbe665877675d27ef531b5aa1f7d859 100644 (file)
@@ -26,7 +26,6 @@
 #include "marker_view.h"
 
 using namespace ARDOUR ;
-using namespace sigc;
 
 sigc::signal<void,MarkerView*> MarkerView::GoingAway;
 
index 3d44ca2429f738e37c6553041900cae71eb3838b..c889602b8c849fb9e2d858f0bdbdece59c1c89f8 100644 (file)
@@ -25,7 +25,6 @@
 
 using namespace std;
 using namespace Gtk;
-using namespace sigc;
 using namespace ARDOUR;
 
 MidiChannelSelector::MidiChannelSelector(int n_rows, int n_columns, int start_row, int start_column)
index 05685050d5f5f2e5dfd1f27e0c5d1fb841aee4b4..23fb6f1ef2fb25ae379e0cad235a974417e8f4de 100644 (file)
@@ -13,7 +13,6 @@ using namespace std;
 using namespace PBD;
 using namespace Gtk;
 using namespace Gtkmm2ext;
-using namespace sigc;
 
 static const char* mode_strings[] = { "duplex", "output", "input",  (char*) 0 };
 
index 6ebee3ec2424d4455cb5e3760a8280c066a0912b..a8f6f11b42a653505cf6b920a2fa0331c40bc022 100644 (file)
@@ -65,7 +65,6 @@
 
 #include "i18n.h"
 
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Editing;
index 1c84acd78ec2241695dcfff6b5d301132714c221..c8c34e436934045f041f0a97035060d53dee4f19 100644 (file)
@@ -87,7 +87,6 @@
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
-using namespace sigc;
 using namespace Editing;
 
 // Minimum height at which a control is displayed
index 1fb558df4d7ffdeafda9b529c8004eb1d2c38ddd..01f67c51fedf2c0d67f099ca39dbffc8122bed35 100644 (file)
@@ -63,7 +63,6 @@
 
 #include "i18n.h"
 
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
@@ -1182,20 +1181,20 @@ MixerStrip::fast_update ()
 void
 MixerStrip::diskstream_changed ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &MixerStrip::update_diskstream_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&MixerStrip::update_diskstream_display, this));
 }
 
 void
 MixerStrip::input_changed (IOChange /*change*/, void */*src*/)
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &MixerStrip::update_input_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&MixerStrip::update_input_display, this));
        set_width_enum (_width, this);
 }
 
 void
 MixerStrip::output_changed (IOChange /*change*/, void */*src*/)
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &MixerStrip::update_output_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&MixerStrip::update_output_display, this));
        set_width_enum (_width, this);
 }
 
index 215daccde6a7e9030958878c42374ac8e27e0701..12dde081af982391d0574e3dc95e936abb3f5139 100644 (file)
@@ -57,7 +57,6 @@ using namespace PBD;
 using namespace Gtk;
 using namespace Glib;
 using namespace Gtkmm2ext;
-using namespace sigc;
 using namespace std;
 
 using PBD::atoi;
index 2ff1fd6b37c893ac21e929abaabbea5b344d477c..b37b75c9b6f91e0edcc9e6d775fa59033ed52c75 100644 (file)
@@ -26,7 +26,6 @@
 
 using namespace Gtk;
 using namespace std;
-using namespace sigc;
 using namespace Glib;
 
 void
index 8674bc063092c401938bdd4758141ccfe2e04859..b67180cb09fc1142cdaa6455c2726dce08767d6a 100644 (file)
@@ -25,7 +25,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace Gtk;
 using namespace ARDOUR;
 
@@ -71,7 +70,7 @@ OptionEditorBox::add_to_page (OptionEditorPage* p)
        add_widget_to_page (p, _box);
 }
 
-BoolOption::BoolOption (string const & i, string const & n, slot<bool> g, slot<bool, bool> s)
+BoolOption::BoolOption (string const & i, string const & n, sigc::slot<bool> g, sigc::slot<bool, bool> s)
        : Option (i, n),
          _get (g),
          _set (s)
@@ -99,7 +98,7 @@ BoolOption::toggled ()
        _set (_button->get_active ());
 }
 
-EntryOption::EntryOption (string const & i, string const & n, slot<string> g, slot<bool, string> s)
+EntryOption::EntryOption (string const & i, string const & n, sigc::slot<string> g, sigc::slot<bool, string> s)
        : Option (i, n),
          _get (g),
          _set (s)
index d2399f457c50dfe032b284f4acfb91ca384fd966..08a4aa7b1bf6ee28fba77026f9e51640c96df8a0 100644 (file)
@@ -36,7 +36,6 @@
 
 using namespace std;
 using namespace Gtk;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using Gtkmm2ext::Keyboard;
index eb93052380c1bf663a0daf2267e04b78e9ce35db..3c2cfafdfed6ca250a9ef598b51f0ae8bea85ef0 100644 (file)
@@ -45,7 +45,6 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
-using namespace sigc;
 
 const int PannerUI::pan_bar_height = 30;
 
index 1469a3566c84f25904b8196d3c6fa5fc90633868..abf249fb3d6ddb1f99f92f1a71e271f0fead3c44 100644 (file)
@@ -36,7 +36,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 using namespace ARDOUR;
index acad8d640f3ada5e5bfd22132500886282b27c30..cb7491917c0b6e536cdb3ab8b3c092b12c0988f8 100644 (file)
@@ -73,7 +73,6 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
-using namespace sigc;
 
 PluginUIWindow::PluginUIWindow (Gtk::Window* win, boost::shared_ptr<PluginInsert> insert, bool scrollable)
        : parent (win)
index 5ac8b1265c644b4d188fecac4bc4ff1f9c316be9..8dec953d7a61cf91b0843588e82cc0704da2d8c1 100644 (file)
@@ -37,7 +37,6 @@
 #include "gui_thread.h"
 
 using namespace std;
-using namespace sigc;
 using namespace Gtk;
 using namespace ARDOUR;
 
@@ -166,7 +165,7 @@ PortMatrix::init ()
 void
 PortMatrix::reconnect_to_routes ()
 {
-       for (vector<connection>::iterator i = _route_connections.begin(); i != _route_connections.end(); ++i) {
+       for (vector<sigc::connection>::iterator i = _route_connections.begin(); i != _route_connections.end(); ++i) {
                i->disconnect ();
        }
        _route_connections.clear ();
index 900579e419b42ea975213ecb61c090469eeecb6d..ab6d9f546d027192f39602337e24a9fcc72fea41 100644 (file)
@@ -80,7 +80,6 @@ class AUPluginUI;
 #endif
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
index a4a2e2c9a504caba8e2eae903810dd18ea711f18..a3796a6746de90a349d4fb064832f9c191b53534 100644 (file)
@@ -18,7 +18,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 using namespace PBD;
index 696c14b14009ce2fa2237032a6d2b7df2e8381cb..94592000a122388f6cedb3a3ffe1f00998994d6c 100644 (file)
@@ -27,7 +27,6 @@
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 
 /** Construct an empty RegionSelection.
  */
index 059d240837b5c0e2ed5d2da8ba9bf328cd77697c..343c2b47ffe43422cc42024faf2a0aad323d2ef2 100644 (file)
@@ -51,7 +51,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Editing;
@@ -81,6 +80,7 @@ RegionView::RegionView (ArdourCanvas::Group*              parent,
        , wait_for_data(false)
        , _time_converter(r->session().tempo_map(), r->position())
 {
+       cerr << "RV " << this << " has ref on region " << _region->name() << endl;
 }
 
 RegionView::RegionView (const RegionView& other)
@@ -95,6 +95,7 @@ RegionView::RegionView (const RegionView& other)
        valid = false;
        _pixel_width = other._pixel_width;
        _height = other._height;
+       cerr << "RV " << this << " has ref on region " << _region->name() << endl;
 }
 
 RegionView::RegionView (const RegionView& other, boost::shared_ptr<Region> other_region)
@@ -113,6 +114,7 @@ RegionView::RegionView (const RegionView& other, boost::shared_ptr<Region> other
        valid = false;
        _pixel_width = other._pixel_width;
        _height = other._height;
+       cerr << "RV " << this << " has ref on region " << _region->name() << endl;
 }
 
 RegionView::RegionView (ArdourCanvas::Group*         parent,
@@ -135,6 +137,7 @@ RegionView::RegionView (ArdourCanvas::Group*         parent,
        , wait_for_data(false)
        , _time_converter(r->session().tempo_map(), r->position())
 {
+       cerr << "RV " << this << " has ref on region " << _region->name() << endl;
 }
 
 void
index ae4762284a30119f297227a02b6f8a6449b40414..c9bba4b63baf02f5f73232bc513394795b3ef110 100644 (file)
@@ -58,7 +58,6 @@ using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
 using namespace Gtkmm2ext;
-using namespace sigc;
 
 RouteParams_UI::RouteParams_UI ()
        : ArdourDialog ("track/bus inspector"),
index f5cd4dd5717ee9169d30cb69bc0a5571ae2183d3..1af1e0c968f393aea11b0f9ad6d2ca6617b9ced1 100644 (file)
@@ -32,7 +32,6 @@
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 
 RouteRedirectSelection&
 RouteRedirectSelection::operator= (const RouteRedirectSelection& other)
index e46d31bf8d9faa72d99b1d149bdcca20dd1065e0..34eff4636b7156e3035b219465de58da371cd32e 100644 (file)
@@ -88,7 +88,6 @@ using namespace PBD;
 using namespace Gtkmm2ext;
 using namespace Gtk;
 using namespace Editing;
-using namespace sigc;
 using namespace std;
 
 Glib::RefPtr<Gdk::Pixbuf> RouteTimeAxisView::slider;
@@ -1144,13 +1143,13 @@ RouteTimeAxisView::clear_playlist ()
 void
 RouteTimeAxisView::speed_changed ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &RouteTimeAxisView::reset_samples_per_unit));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteTimeAxisView::reset_samples_per_unit, this));
 }
 
 void
 RouteTimeAxisView::diskstream_changed ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun(*this, &RouteTimeAxisView::update_diskstream_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteTimeAxisView::update_diskstream_display, this));
 }
 
 void
index 1b27c05773cdf118f50a2696d333c4587615f9bd..2b5c892c0c8eeab4403fcf3cb35ff566538bca90 100644 (file)
@@ -60,7 +60,6 @@
 #include "ardour/profile.h"
 
 #include "i18n.h"
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 using namespace ARDOUR;
@@ -655,14 +654,14 @@ RouteUI::send_blink (bool onoff)
 void
 RouteUI::solo_changed(void* /*src*/)
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &RouteUI::update_solo_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteUI::update_solo_display, this));
 }
 
 
 void
 RouteUI::listen_changed(void* /*src*/)
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &RouteUI::update_solo_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteUI::update_solo_display, this));
 }
 
 int
@@ -758,13 +757,13 @@ RouteUI::update_solo_display ()
 void
 RouteUI::solo_changed_so_update_mute ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &RouteUI::update_mute_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteUI::update_mute_display, this));
 }
 
 void
 RouteUI::mute_changed(void* /*src*/)
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &RouteUI::update_mute_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteUI::update_mute_display, this));
 }
 
 int
@@ -823,13 +822,13 @@ RouteUI::update_mute_display ()
 void
 RouteUI::route_rec_enable_changed ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &RouteUI::update_rec_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteUI::update_rec_display, this));
 }
 
 void
 RouteUI::session_rec_enable_changed ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &RouteUI::update_rec_display));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteUI::update_rec_display, this));
 }
 
 void
@@ -1164,7 +1163,7 @@ void
 RouteUI::route_active_changed ()
 {
        if (route_active_menu_item) {
-               Gtkmm2ext::UI::instance()->call_slot (sigc::bind (sigc::mem_fun (*route_active_menu_item, &CheckMenuItem::set_active), _route->active()));
+               Gtkmm2ext::UI::instance()->call_slot (boost::bind (&CheckMenuItem::set_active, route_active_menu_item, _route->active()));
        }
 }
 
index 75151fce2aca6b78f67ead1e69b4816b67341c1e..78fb785d111f3e870796484364ffe645cf46da34 100644 (file)
@@ -38,7 +38,6 @@
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 
 struct AudioRangeComparator {
     bool operator()(AudioRange a, AudioRange b) {
index 5650b79568d5a1ce4e551a1a036a00cc07cad06d..08cd8ef260a2f7a2c16979e78a4f3510464b28cf 100644 (file)
@@ -8,7 +8,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 
 class OptionsPortMatrix : public PortMatrix
index dd5da01b0fac483e0a4566b91771feba63c94884..168ddb390437af04b3d9a8cb0c0d0d00c7ac7be2 100644 (file)
@@ -234,9 +234,9 @@ StreamView::display_diskstream (boost::shared_ptr<Diskstream> ds)
 {
        playlist_change_connection.disconnect();
        playlist_changed (ds);
-       playlist_change_connection = ds->PlaylistChanged.connect (sigc::bind (
-                       sigc::mem_fun (*this, &StreamView::playlist_changed_weak),
-                       boost::weak_ptr<Diskstream> (ds)));
+       playlist_change_connection = ds->PlaylistChanged.connect (
+               sigc::bind (sigc::mem_fun (*this, &StreamView::playlist_changed_weak),
+                           boost::weak_ptr<Diskstream> (ds)));
 }
 
 void
@@ -379,11 +379,9 @@ StreamView::diskstream_changed ()
        boost::shared_ptr<Track> t;
 
        if ((t = _trackview.track()) != 0) {
-               Gtkmm2ext::UI::instance()->call_slot (sigc::bind (
-                               sigc::mem_fun (*this, &StreamView::display_diskstream),
-                               t->diskstream()));
+               Gtkmm2ext::UI::instance()->call_slot (boost::bind (&StreamView::display_diskstream, this, t->diskstream()));
        } else {
-               Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &StreamView::undisplay_diskstream));
+               Gtkmm2ext::UI::instance()->call_slot (boost::bind (&StreamView::undisplay_diskstream, this));
        }
 }
 
@@ -421,19 +419,19 @@ StreamView::region_layered (RegionView* rv)
 void
 StreamView::rec_enable_changed ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &StreamView::setup_rec_box));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&StreamView::setup_rec_box, this));
 }
 
 void
 StreamView::sess_rec_enable_changed ()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &StreamView::setup_rec_box));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&StreamView::setup_rec_box, this));
 }
 
 void
 StreamView::transport_changed()
 {
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &StreamView::setup_rec_box));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&StreamView::setup_rec_box, this));
 }
 
 void
@@ -441,7 +439,7 @@ StreamView::transport_looped()
 {
        // to force a new rec region
        rec_active = false;
-       Gtkmm2ext::UI::instance()->call_slot (sigc::mem_fun (*this, &StreamView::setup_rec_box));
+       Gtkmm2ext::UI::instance()->call_slot (boost::bind (&StreamView::setup_rec_box, this));
 }
 
 void
index 0682a048414c6779b3d28e0a739901f09893022b..7397997a38162f770b608cda9b7ef89a6992a611 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "i18n.h"
 
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Editing;
index 18b760e50976f67fb4257f5a7e52f1599553cd1d..e5cd0c71bcc4c4c369754ddda8b75a4bb5932c8a 100644 (file)
@@ -57,7 +57,6 @@
 using namespace std;
 using namespace Gtk;
 using namespace Gdk;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Editing;
index f1aba7849239083673dfc67552e0926dbafa57a5..04280e00111aee0ec73a1efd1556796dc704b462 100644 (file)
@@ -56,7 +56,6 @@ using namespace RubberBand;
 using namespace std;
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 
index a98435f0d94a479d1ac52a384ed1fb9ab446af7b..9aba168ef1cdc35a6824470480def27857190de9 100644 (file)
@@ -50,7 +50,6 @@
 
 using namespace std;
 using namespace Gtk;
-using namespace sigc;
 using namespace Glib;
 using namespace PBD;
 using Gtkmm2ext::Keyboard;
index 8dd0be5773f4bea84f59012a0c4751452b9b6851..1e83f56dc97e324a265f3889ff53371002a85d2b 100644 (file)
@@ -55,7 +55,6 @@
 
 using namespace ARDOUR;
 using namespace PBD;
-using namespace sigc;
 using namespace Gtk;
 
 /**
index 992e5c52467f55ecc540f911cc6c623849064378..c19657baaf40ce9988b4b1d8f23e335dcc7586c8 100644 (file)
@@ -26,7 +26,6 @@
 #include "pbd/convert.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 
index bd164a08e914a9f128451e47fca74400dcc25a3a..02bbcaca23a5f9dd42cb90729909270c7d8bc959 100644 (file)
@@ -19,7 +19,7 @@
 
 #ifndef __ardour_configuration_h__
 #define __ardour_configuration_h__
-
+#include <boost/function.hpp>
 #include "pbd/stateful.h"
 #include "ardour/configuration_variable.h"
 
@@ -33,7 +33,7 @@ class Configuration : public PBD::Stateful
        Configuration();
        virtual ~Configuration();
 
-       virtual void map_parameters (sigc::slot<void, std::string> s) = 0;
+       virtual void map_parameters (boost::function<void (std::string)>&) = 0;
        virtual int set_state (XMLNode const &, int) = 0;
        virtual XMLNode & get_state () = 0;
        virtual XMLNode & get_variables () = 0;
index 555c925a011386c91882273f055cce6915887601..ad31aac44ea102747707f46aa527147fe1bbef26 100644 (file)
@@ -36,7 +36,7 @@ class RCConfiguration : public Configuration
   public:
        RCConfiguration();
 
-       void map_parameters (sigc::slot<void, std::string>);
+       void map_parameters (boost::function<void (std::string)>&);
        int set_state (XMLNode const &, int version);
        XMLNode& get_state ();
        XMLNode& get_variables ();
index 20df86ca4dc75f04bef746bd8a949d131378c809..d19c28f0cb4f235bf4d5a416388fded9d9c5da0f 100644 (file)
@@ -29,7 +29,7 @@ class SessionConfiguration : public Configuration
 public:
        SessionConfiguration ();
 
-       void map_parameters (sigc::slot<void, std::string>);
+       void map_parameters (boost::function<void (std::string)>&);
        int set_state (XMLNode const &, int version);
        XMLNode& get_state ();
        XMLNode& get_variables ();
index 6df18e681d575be2172bc4b70efd40a3f8ae19fa..40411f413321778a9d98a7c592f05de524dd5543 100644 (file)
@@ -1506,7 +1506,7 @@ AudioDiskstream::transport_stopped (struct tm& when, time_t twhen, bool abort_ca
                                continue; /* XXX is this OK? */
                        }
 
-                       region->GoingAway.connect (bind (mem_fun (*this, &Diskstream::remove_region_from_last_capture), boost::weak_ptr<Region>(region)));
+                       region->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &Diskstream::remove_region_from_last_capture), boost::weak_ptr<Region>(region)));
 
                        _last_capture_regions.push_back (region);
 
index 96494394873f47fe26a68d0078369de7820cbf6d..63013426cbadaa8c577c2c95009bd13b78783900 100644 (file)
@@ -35,7 +35,6 @@
 #include "i18n.h"
 
 using namespace ARDOUR;
-using namespace sigc;
 using namespace std;
 using namespace PBD;
 
@@ -532,8 +531,8 @@ AudioPlaylist::add_crossfade (boost::shared_ptr<Crossfade> xfade)
        } else {
                _crossfades.push_back (xfade);
 
-               xfade->Invalidated.connect (mem_fun (*this, &AudioPlaylist::crossfade_invalidated));
-               xfade->StateChanged.connect (mem_fun (*this, &AudioPlaylist::crossfade_changed));
+               xfade->Invalidated.connect (sigc::mem_fun (*this, &AudioPlaylist::crossfade_invalidated));
+               xfade->StateChanged.connect (sigc::mem_fun (*this, &AudioPlaylist::crossfade_changed));
 
                notify_crossfade_added (xfade);
        }
@@ -588,8 +587,8 @@ AudioPlaylist::set_state (const XMLNode& node, int version)
                try {
                        boost::shared_ptr<Crossfade> xfade = boost::shared_ptr<Crossfade> (new Crossfade (*((const Playlist *)this), *child));
                        _crossfades.push_back (xfade);
-                       xfade->Invalidated.connect (mem_fun (*this, &AudioPlaylist::crossfade_invalidated));
-                       xfade->StateChanged.connect (mem_fun (*this, &AudioPlaylist::crossfade_changed));
+                       xfade->Invalidated.connect (sigc::mem_fun (*this, &AudioPlaylist::crossfade_invalidated));
+                       xfade->StateChanged.connect (sigc::mem_fun (*this, &AudioPlaylist::crossfade_changed));
                        NewCrossfade(xfade);
                }
 
index f190b50bd6559b61bd0dca861c30cd2fab47bfb6..68081661ad277d7e9454567acddcdc44bc8c7dd2 100644 (file)
@@ -185,7 +185,7 @@ AudioTrack::set_diskstream (boost::shared_ptr<AudioDiskstream> ds, void * /*src*
        if (audio_diskstream()->deprecated_io_node) {
 
                if (!IO::connecting_legal) {
-                       IO::ConnectingLegal.connect (mem_fun (*this, &AudioTrack::deprecated_use_diskstream_connections));
+                       IO::ConnectingLegal.connect (sigc::mem_fun (*this, &AudioTrack::deprecated_use_diskstream_connections));
                } else {
                        deprecated_use_diskstream_connections ();
                }
@@ -307,7 +307,7 @@ AudioTrack::_set_state (const XMLNode& node, int version, bool call_base)
        pending_state = const_cast<XMLNode*> (&node);
 
        if (_session.state_of_the_state() & Session::Loading) {
-               _session.StateReady.connect (mem_fun (*this, &AudioTrack::set_state_part_two));
+               _session.StateReady.connect (sigc::mem_fun (*this, &AudioTrack::set_state_part_two));
        } else {
                set_state_part_two ();
        }
index e46f8ed3fd15607f7c01ea9efd45ae6adc966312..d660616bb33fee9963f1994a147d888d758d5d51 100644 (file)
@@ -98,7 +98,7 @@ AudioRegion::AudioRegion (boost::shared_ptr<AudioSource> src, nframes_t start, n
 {
        boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource> (src);
        if (afs) {
-               afs->HeaderPositionOffsetChanged.connect (mem_fun (*this, &AudioRegion::source_offset_changed));
+               afs->HeaderPositionOffsetChanged.connect (sigc::mem_fun (*this, &AudioRegion::source_offset_changed));
        }
 
        init ();
@@ -115,7 +115,7 @@ AudioRegion::AudioRegion (boost::shared_ptr<AudioSource> src, nframes_t start, n
 {
        boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource> (src);
        if (afs) {
-               afs->HeaderPositionOffsetChanged.connect (mem_fun (*this, &AudioRegion::source_offset_changed));
+               afs->HeaderPositionOffsetChanged.connect (sigc::mem_fun (*this, &AudioRegion::source_offset_changed));
        }
 
        init ();
@@ -207,7 +207,7 @@ AudioRegion::AudioRegion (boost::shared_ptr<const AudioRegion> other, const Sour
 
                boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource> ((*i));
                if (afs) {
-                       afs->HeaderPositionOffsetChanged.connect (mem_fun (*this, &AudioRegion::source_offset_changed));
+                       afs->HeaderPositionOffsetChanged.connect (sigc::mem_fun (*this, &AudioRegion::source_offset_changed));
                }
        }
 
@@ -231,7 +231,7 @@ AudioRegion::AudioRegion (boost::shared_ptr<AudioSource> src, const XMLNode& nod
 {
        boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource> (src);
        if (afs) {
-               afs->HeaderPositionOffsetChanged.connect (mem_fun (*this, &AudioRegion::source_offset_changed));
+               afs->HeaderPositionOffsetChanged.connect (sigc::mem_fun (*this, &AudioRegion::source_offset_changed));
        }
 
        init ();
@@ -272,7 +272,7 @@ void
 AudioRegion::connect_to_analysis_changed ()
 {
        for (SourceList::const_iterator i = _sources.begin(); i != _sources.end(); ++i) {
-               (*i)->AnalysisChanged.connect (mem_fun (*this, &AudioRegion::invalidate_transients));
+               (*i)->AnalysisChanged.connect (sigc::mem_fun (*this, &AudioRegion::invalidate_transients));
        }
 }
 
@@ -287,7 +287,7 @@ AudioRegion::connect_to_header_position_offset_changed ()
                        unique_srcs.insert (*i);
                        boost::shared_ptr<AudioFileSource> afs = boost::dynamic_pointer_cast<AudioFileSource> (*i);
                        if (afs) {
-                               afs->HeaderPositionOffsetChanged.connect (mem_fun (*this, &AudioRegion::source_offset_changed));
+                               afs->HeaderPositionOffsetChanged.connect (sigc::mem_fun (*this, &AudioRegion::source_offset_changed));
                        }
                }
        }
@@ -296,9 +296,9 @@ AudioRegion::connect_to_header_position_offset_changed ()
 void
 AudioRegion::listen_to_my_curves ()
 {
-       _envelope->StateChanged.connect (mem_fun (*this, &AudioRegion::envelope_changed));
-       _fade_in->StateChanged.connect (mem_fun (*this, &AudioRegion::fade_in_changed));
-       _fade_out->StateChanged.connect (mem_fun (*this, &AudioRegion::fade_out_changed));
+       _envelope->StateChanged.connect (sigc::mem_fun (*this, &AudioRegion::envelope_changed));
+       _fade_in->StateChanged.connect (sigc::mem_fun (*this, &AudioRegion::fade_in_changed));
+       _fade_out->StateChanged.connect (sigc::mem_fun (*this, &AudioRegion::fade_out_changed));
 }
 
 void
index 9db604cd5480d4b22dc630a3f449b6c8885755e7..dbb76c005ea0f8e9a95cb92783c1c2be47e2bca7 100644 (file)
@@ -72,7 +72,7 @@ Auditioner::Auditioner (Session& s)
        _main_outs->allow_pan_reset ();
        _main_outs->reset_panner ();
 
-       _output->changed.connect (mem_fun (*this, &Auditioner::output_changed));
+       _output->changed.connect (sigc::mem_fun (*this, &Auditioner::output_changed));
 
        the_region.reset ((AudioRegion*) 0);
        g_atomic_int_set (&_active, 0);
index c0a652275c17bc7bec505aa6e54bf9525e1a36cb..db8f5bb799e4558019faace760ee791625160d77 100644 (file)
@@ -34,7 +34,6 @@
 
 using namespace std;
 using namespace ARDOUR;
-using namespace sigc;
 using namespace PBD;
 
 sigc::signal<void,AutomationList *> AutomationList::AutomationListCreated;
index e94829898af15311bc5239ee8c083ca7154268e5..d15283c85c2179072a8f1de58a7e14d373e94ddb 100644 (file)
@@ -66,7 +66,7 @@ void
 ControlProtocolManager::set_session (Session& s)
 {
        _session = &s;
-       _session->GoingAway.connect (mem_fun (*this, &ControlProtocolManager::drop_session));
+       _session->GoingAway.connect (sigc::mem_fun (*this, &ControlProtocolManager::drop_session));
 
        for (list<ControlProtocolInfo*>::iterator i = control_protocol_info.begin(); i != control_protocol_info.end(); ++i) {
                if ((*i)->requested || (*i)->mandatory) {
index ec2ae7d4ccddd28f7d7879b6df5dc9c7abf83169..07489687c18b4d7023a69540bef889be3af5697e 100644 (file)
@@ -64,10 +64,10 @@ Delivery::Delivery (Session& s, boost::shared_ptr<IO> io, boost::shared_ptr<Mute
        _display_to_user = false;
 
        if (_output) {
-               _output->changed.connect (mem_fun (*this, &Delivery::output_changed));
+               _output->changed.connect (sigc::mem_fun (*this, &Delivery::output_changed));
        }
 
-       CycleStart.connect (mem_fun (*this, &Delivery::cycle_start));
+       CycleStart.connect (sigc::mem_fun (*this, &Delivery::cycle_start));
 }
 
 /* deliver to a new IO object */
@@ -88,10 +88,10 @@ Delivery::Delivery (Session& s, boost::shared_ptr<MuteMaster> mm, const string&
        _display_to_user = false;
 
        if (_output) {
-               _output->changed.connect (mem_fun (*this, &Delivery::output_changed));
+               _output->changed.connect (sigc::mem_fun (*this, &Delivery::output_changed));
        }
 
-       CycleStart.connect (mem_fun (*this, &Delivery::cycle_start));
+       CycleStart.connect (sigc::mem_fun (*this, &Delivery::cycle_start));
 }
 
 /* deliver to a new IO object, reconstruct from XML */
@@ -116,10 +116,10 @@ Delivery::Delivery (Session& s, boost::shared_ptr<MuteMaster> mm, const XMLNode&
        }
 
        if (_output) {
-               _output->changed.connect (mem_fun (*this, &Delivery::output_changed));
+               _output->changed.connect (sigc::mem_fun (*this, &Delivery::output_changed));
        }
 
-       CycleStart.connect (mem_fun (*this, &Delivery::cycle_start));
+       CycleStart.connect (sigc::mem_fun (*this, &Delivery::cycle_start));
 }
 
 /* deliver to an existing IO object, reconstruct from XML */
@@ -144,10 +144,10 @@ Delivery::Delivery (Session& s, boost::shared_ptr<IO> out, boost::shared_ptr<Mut
        }
 
        if (_output) {
-               _output->changed.connect (mem_fun (*this, &Delivery::output_changed));
+               _output->changed.connect (sigc::mem_fun (*this, &Delivery::output_changed));
        }
 
-       CycleStart.connect (mem_fun (*this, &Delivery::cycle_start));
+       CycleStart.connect (sigc::mem_fun (*this, &Delivery::cycle_start));
 }
 
 std::string
@@ -419,7 +419,7 @@ Delivery::reset_panner ()
                }
        } else {
                panner_legal_c.disconnect ();
-               panner_legal_c = PannersLegal.connect (mem_fun (*this, &Delivery::panners_became_legal));
+               panner_legal_c = PannersLegal.connect (sigc::mem_fun (*this, &Delivery::panners_became_legal));
        }
 }
 
index b1d5a92355a5ef45b4d260d67c0643bba3356fdd..ee279c601d50c5922ba4e801c76fe92932278047 100644 (file)
@@ -143,13 +143,13 @@ Diskstream::set_route (Route& r)
        _io = _route->input();
 
        ic_connection.disconnect();
-       ic_connection = _io->changed.connect (mem_fun (*this, &Diskstream::handle_input_change));
+       ic_connection = _io->changed.connect (sigc::mem_fun (*this, &Diskstream::handle_input_change));
 
        input_change_pending = ConfigurationChanged;
        non_realtime_input_change ();
        set_align_style_from_io ();
 
-       _route->GoingAway.connect (mem_fun (*this, &Diskstream::route_going_away));
+       _route->GoingAway.connect (sigc::mem_fun (*this, &Diskstream::route_going_away));
 }
 
 void
@@ -342,9 +342,9 @@ Diskstream::use_playlist (boost::shared_ptr<Playlist> playlist)
                        reset_write_sources (false);
                }
 
-               plmod_connection = _playlist->Modified.connect (mem_fun (*this, &Diskstream::playlist_modified));
-               plgone_connection = _playlist->GoingAway.connect (bind (mem_fun (*this, &Diskstream::playlist_deleted), boost::weak_ptr<Playlist>(_playlist)));
-               plregion_connection = _playlist->RangesMoved.connect (mem_fun (*this, &Diskstream::playlist_ranges_moved));
+               plmod_connection = _playlist->Modified.connect (sigc::mem_fun (*this, &Diskstream::playlist_modified));
+               plgone_connection = _playlist->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &Diskstream::playlist_deleted), boost::weak_ptr<Playlist>(_playlist)));
+               plregion_connection = _playlist->RangesMoved.connect (sigc::mem_fun (*this, &Diskstream::playlist_ranges_moved));
        }
 
        /* don't do this if we've already asked for it *or* if we are setting up
index 86d0a2deea47f7f9619eeb7eeef6cc923d21c288..41c29f43f10a39a8f78002a27ef48d2f41c76951 100644 (file)
@@ -33,14 +33,14 @@ InternalReturn::InternalReturn (Session& s)
        : Return (s, true)
        , user_count (0)
 {
-       CycleStart.connect (mem_fun (*this, &InternalReturn::cycle_start));
+       CycleStart.connect (sigc::mem_fun (*this, &InternalReturn::cycle_start));
 }
 
 InternalReturn::InternalReturn (Session& s, const XMLNode& node)
        : Return (s, node, true)
        , user_count (0)
 {
-       CycleStart.connect (mem_fun (*this, &InternalReturn::cycle_start));
+       CycleStart.connect (sigc::mem_fun (*this, &InternalReturn::cycle_start));
 }
 
 void
index 0fc498be7fc7668815fe8e811d2cd5e3c79b36a9..e10857a2a9a24d5ab130e1787cca18b6d491d400 100644 (file)
@@ -43,8 +43,8 @@ InternalSend::InternalSend (Session& s, boost::shared_ptr<MuteMaster> mm, boost:
 
        set_name (sendto->name());
 
-       _send_to->GoingAway.connect (mem_fun (*this, &InternalSend::send_to_going_away));
-       _send_to->NameChanged.connect (mem_fun (*this, &InternalSend::send_to_name_changed));
+       _send_to->GoingAway.connect (sigc::mem_fun (*this, &InternalSend::send_to_going_away));
+       _send_to->NameChanged.connect (sigc::mem_fun (*this, &InternalSend::send_to_name_changed));
 }
 
 InternalSend::InternalSend (Session& s, boost::shared_ptr<MuteMaster> mm, const XMLNode& node)
@@ -187,7 +187,7 @@ InternalSend::set_our_state (const XMLNode& node, int version)
                */
 
                if (!IO::connecting_legal) {
-                       connect_c = IO::ConnectingLegal.connect (mem_fun (*this, &InternalSend::connect_when_legal));
+                       connect_c = IO::ConnectingLegal.connect (sigc::mem_fun (*this, &InternalSend::connect_when_legal));
                } else {
                        connect_when_legal ();
                }
index fe2dfb1f7a8316a4aac853e37604b2f8adc740d2..d8d7ec88a5bb6eaf9711ce7d80898c1fbad40602 100644 (file)
@@ -567,7 +567,7 @@ IO::set_state (const XMLNode& node, int version)
                pending_state_node = new XMLNode (node);
                pending_state_node_version = version;
                pending_state_node_in = false;
-               connection_legal_c = ConnectingLegal.connect (mem_fun (*this, &IO::connecting_became_legal));
+               connection_legal_c = ConnectingLegal.connect (sigc::mem_fun (*this, &IO::connecting_became_legal));
        }
 
 
@@ -620,7 +620,7 @@ IO::set_state_2X (const XMLNode& node, int version, bool in)
                pending_state_node = new XMLNode (node);
                pending_state_node_version = version;
                pending_state_node_in = in;
-               connection_legal_c = ConnectingLegal.connect (mem_fun (*this, &IO::connecting_became_legal));
+               connection_legal_c = ConnectingLegal.connect (sigc::mem_fun (*this, &IO::connecting_became_legal));
        }
 
        return 0;
index 94a12319f2a276cdd82e2ba3ecaa124ae288a21a..9ef6eb8579ed21897a0ad7822846cd2c12e8e02a 100644 (file)
@@ -30,7 +30,6 @@
 
 using namespace std;
 using namespace ARDOUR;
-using namespace sigc;
 
 JACK_Slave::JACK_Slave (jack_client_t* j)
        : jack (j)
index b3421d2b0b3f7843a727987026b6567d25889b07..24e4628c0b8fbda510cdbab665930c92cbf2685f 100644 (file)
@@ -41,7 +41,6 @@
 
 using namespace std;
 using namespace ARDOUR;
-using namespace sigc;
 using namespace PBD;
 
 Location::Location (const Location& other)
index 53f819e54adf9fe7e4c657be89aba58e639ffa32..e2b83a1e65d3c2a2c3c879fb11f6c094e2fccf93 100644 (file)
@@ -39,7 +39,6 @@
 
 using namespace std;
 using namespace ARDOUR;
-using namespace sigc;
 using namespace MIDI;
 using namespace PBD;
 
@@ -79,11 +78,11 @@ MIDIClock_Slave::rebind (MIDI::Port& p)
                std::cerr << "MIDIClock_Slave: connecting to port " << port->name() << std::endl;
        #endif
 
-       connections.push_back (port->input()->timing.connect   (mem_fun (*this, &MIDIClock_Slave::update_midi_clock)));
-       connections.push_back (port->input()->start.connect    (mem_fun (*this, &MIDIClock_Slave::start)));
-       connections.push_back (port->input()->contineu.connect (mem_fun (*this, &MIDIClock_Slave::contineu)));
-       connections.push_back (port->input()->stop.connect     (mem_fun (*this, &MIDIClock_Slave::stop)));
-       connections.push_back (port->input()->position.connect (mem_fun (*this, &MIDIClock_Slave::position)));
+       connections.push_back (port->input()->timing.connect   (sigc::mem_fun (*this, &MIDIClock_Slave::update_midi_clock)));
+       connections.push_back (port->input()->start.connect    (sigc::mem_fun (*this, &MIDIClock_Slave::start)));
+       connections.push_back (port->input()->contineu.connect (sigc::mem_fun (*this, &MIDIClock_Slave::contineu)));
+       connections.push_back (port->input()->stop.connect     (sigc::mem_fun (*this, &MIDIClock_Slave::stop)));
+       connections.push_back (port->input()->position.connect (sigc::mem_fun (*this, &MIDIClock_Slave::position)));
 }
 
 void
index 176ec156f0afb4f14d83b37cc85a3bb54111817c..f780948d693dcf8d7f32284677c584305b16f6a3 100644 (file)
@@ -1024,7 +1024,7 @@ MidiDiskstream::transport_stopped (struct tm& /*when*/, time_t /*twhen*/, bool a
                                continue; /* XXX is this OK? */
                        }
 
-                       region->GoingAway.connect (bind (mem_fun (*this, &Diskstream::remove_region_from_last_capture), boost::weak_ptr<Region>(region)));
+                       region->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &Diskstream::remove_region_from_last_capture), boost::weak_ptr<Region>(region)));
 
                        _last_capture_regions.push_back (region);
 
index f523ab056f467976c71a4d3bbea54bd53b1937a3..307655bff8e4f09daf96146e751bd7ef84b72444 100644 (file)
@@ -32,7 +32,6 @@
 #include "i18n.h"
 
 using namespace std;
-using namespace sigc;
 using namespace ARDOUR;
 using namespace MIDI;
 using namespace MIDI::Name;
@@ -45,7 +44,7 @@ void
 MidiPatchManager::set_session (Session& s)
 {
        _session = &s;
-       _session->GoingAway.connect (mem_fun (*this, &MidiPatchManager::drop_session));
+       _session->GoingAway.connect (sigc::mem_fun (*this, &MidiPatchManager::drop_session));
 
        refresh();
 }
index a1fb01a7bb859702f2a6488c645653de77c906d1..b230f6f6d55d44e2cfaa300e21c64057668c689a 100644 (file)
@@ -40,7 +40,6 @@
 #include "i18n.h"
 
 using namespace ARDOUR;
-using namespace sigc;
 using namespace std;
 
 MidiPlaylist::MidiPlaylist (Session& session, const XMLNode& node, bool hidden)
index 2bec1e69014e7a7c83333734a31da8180635a80f..ebbe231e62acb6d62a4977ddae69cea0278fb475 100644 (file)
@@ -233,7 +233,7 @@ MidiTrack::_set_state (const XMLNode& node, int version, bool call_base)
        pending_state = const_cast<XMLNode*> (&node);
 
        if (_session.state_of_the_state() & Session::Loading) {
-               _session.StateReady.connect (mem_fun (*this, &MidiTrack::set_state_part_two));
+               _session.StateReady.connect (sigc::mem_fun (*this, &MidiTrack::set_state_part_two));
        } else {
                set_state_part_two ();
        }
index ffcec00de7f498767efaf5e344c4bdf93e8aab13..1bb10d713f3e34a739c482d919311ef7cdbacfcc 100644 (file)
@@ -44,7 +44,7 @@ MidiControlUI::MidiControlUI (Session& s)
        : AbstractUI<MidiUIRequest> (_("midiui"))
        , _session (s) 
 {
-       MIDI::Manager::instance()->PortsChanged.connect (mem_fun (*this, &MidiControlUI::change_midi_ports));
+       MIDI::Manager::instance()->PortsChanged.connect (sigc::mem_fun (*this, &MidiControlUI::change_midi_ports));
 }
 
 MidiControlUI::~MidiControlUI ()
@@ -125,7 +125,7 @@ MidiControlUI::reset_ports ()
                if ((fd = (*i)->selectable ()) >= 0) {
                        Glib::RefPtr<IOSource> psrc = IOSource::create (fd, IO_IN|IO_HUP|IO_ERR);
 
-                       psrc->connect (bind (mem_fun (*this, &MidiControlUI::midi_input_handler), (*i)));
+                       psrc->connect (sigc::bind (sigc::mem_fun (*this, &MidiControlUI::midi_input_handler), (*i)));
                        psrc->attach (_main_loop->get_context());
 
                        // glibmm hack: for now, store only the GSource*
index 95fa4d984aa32dd4444d6f48050e18d8a78bc95d..3e06efa56fc358b9478999ea11c73701d20dd89d 100644 (file)
@@ -37,7 +37,6 @@
 
 using namespace std;
 using namespace ARDOUR;
-using namespace sigc;
 using namespace MIDI;
 using namespace PBD;
 
@@ -94,9 +93,9 @@ MTC_Slave::rebind (MIDI::Port& p)
 
        port = &p;
 
-       connections.push_back (port->input()->mtc_time.connect (mem_fun (*this, &MTC_Slave::update_mtc_time)));
-       connections.push_back (port->input()->mtc_qtr.connect (mem_fun (*this, &MTC_Slave::update_mtc_qtr)));
-       connections.push_back (port->input()->mtc_status.connect (mem_fun (*this, &MTC_Slave::update_mtc_status)));
+       connections.push_back (port->input()->mtc_time.connect (sigc::mem_fun (*this, &MTC_Slave::update_mtc_time)));
+       connections.push_back (port->input()->mtc_qtr.connect (sigc::mem_fun (*this, &MTC_Slave::update_mtc_qtr)));
+       connections.push_back (port->input()->mtc_status.connect (sigc::mem_fun (*this, &MTC_Slave::update_mtc_status)));
 }
 
 void
index 3e1ea794779228389d2a1e265a144a27bbce34d2..29beb7c6b73e296a872a5751809bcf93627353b1 100644 (file)
@@ -267,7 +267,7 @@ Playlist::init (bool hide)
        freeze_length = 0;
        _explicit_relayering = false;
 
-       Modified.connect (mem_fun (*this, &Playlist::mark_session_dirty));
+       Modified.connect (sigc::mem_fun (*this, &Playlist::mark_session_dirty));
 }
 
 Playlist::~Playlist ()
@@ -602,7 +602,7 @@ Playlist::add_region_internal (boost::shared_ptr<Region> region, nframes_t posit
        }
 
        region_state_changed_connections.push_back (
-               region->StateChanged.connect (sigc::bind (mem_fun (this, &Playlist::region_changed_proxy),
+               region->StateChanged.connect (sigc::bind (sigc::mem_fun (this, &Playlist::region_changed_proxy),
                                                          boost::weak_ptr<Region> (region)))
                );
 
index e1876227572c0d3d1886fb7fce1b5fdfd561e57b..a68d0d3b9410d50ea005a219ba002cdd07b17fe0 100644 (file)
@@ -309,12 +309,12 @@ RCConfiguration::set_variables (const XMLNode& node)
 
 }
 void
-RCConfiguration::map_parameters (sigc::slot<void, std::string> theSlot)
+RCConfiguration::map_parameters (boost::function<void (std::string)>& functor)
 {
 #undef  CONFIG_VARIABLE
 #undef  CONFIG_VARIABLE_SPECIAL
-#define CONFIG_VARIABLE(type,var,name,value)                 theSlot (name);
-#define CONFIG_VARIABLE_SPECIAL(type,var,name,value,mutator) theSlot (name);
+#define CONFIG_VARIABLE(type,var,name,value)                 functor (name);
+#define CONFIG_VARIABLE_SPECIAL(type,var,name,value,mutator) functor (name);
 #include "ardour/rc_configuration_vars.h"
 #undef  CONFIG_VARIABLE
 #undef  CONFIG_VARIABLE_SPECIAL
index 33baa12d204e8ca08072e3b465fb4fe10091a4bf..2c4d8004cf89dea75ff73939cbcfa92535566401 100644 (file)
@@ -111,7 +111,7 @@ Region::Region (boost::shared_ptr<Source> src, nframes_t start, nframes_t length
        _sources.push_back (src);
        _master_sources.push_back (src);
 
-       src->GoingAway.connect (bind (mem_fun (*this, &Region::source_deleted), src));
+       src->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &Region::source_deleted), src));
 
        assert(_sources.size() > 0);
        _positional_lock_style = AudioTime;
@@ -341,7 +341,7 @@ Region::~Region ()
 {
        DEBUG_TRACE (DEBUG::Destruction, string_compose ("Region %1 destructor @ %2\n", _name, this));
        notify_callbacks ();
-       GoingAway (); /* EMIT SIGNAL */
+       drop_references ();
 }
 
 void
@@ -1419,6 +1419,7 @@ void
 Region::source_deleted (boost::shared_ptr<Source>)
 {
        _sources.clear ();
+       drop_references ();
 }
 
 vector<string>
@@ -1587,14 +1588,14 @@ Region::use_sources (SourceList const & s)
 
        for (SourceList::const_iterator i = s.begin (); i != s.end(); ++i) {
                _sources.push_back (*i);
-               (*i)->GoingAway.connect (bind (mem_fun (*this, &Region::source_deleted), *i));
+               (*i)->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &Region::source_deleted), *i));
                unique_srcs.insert (*i);
        }
 
        for (SourceList::const_iterator i = s.begin (); i != s.end(); ++i) {
                _master_sources.push_back (*i);
                if (unique_srcs.find (*i) == unique_srcs.end()) {
-                       (*i)->GoingAway.connect (bind (mem_fun (*this, &Region::source_deleted), *i));
+                       (*i)->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &Region::source_deleted), *i));
                }
        }
 }
index 0bf43fdcc514bfe153625921fb5b8164c8a48082..33902458282ce337d611cae49f3682fad934670d 100644 (file)
@@ -94,7 +94,7 @@ Route::Route (Session& sess, string name, Flag flg, DataType default_type)
 
        /* now that we have _meter, its safe to connect to this */
 
-       _meter_connection = Metering::connect (mem_fun (*this, &Route::meter));
+       _meter_connection = Metering::connect (sigc::mem_fun (*this, &Route::meter));
 }
 
 Route::Route (Session& sess, const XMLNode& node, DataType default_type)
@@ -110,7 +110,7 @@ Route::Route (Session& sess, const XMLNode& node, DataType default_type)
 
        /* now that we have _meter, its safe to connect to this */
 
-       _meter_connection = Metering::connect (mem_fun (*this, &Route::meter));
+       _meter_connection = Metering::connect (sigc::mem_fun (*this, &Route::meter));
 }
 
 void
@@ -148,8 +148,8 @@ Route::init ()
        _input.reset (new IO (_session, _name, IO::Input, _default_type));
        _output.reset (new IO (_session, _name, IO::Output, _default_type));
 
-       _input->changed.connect (mem_fun (this, &Route::input_change_handler));
-       _output->changed.connect (mem_fun (this, &Route::output_change_handler));
+       _input->changed.connect (sigc::mem_fun (this, &Route::input_change_handler));
+       _output->changed.connect (sigc::mem_fun (this, &Route::output_change_handler));
 
        /* add amp processor  */
 
@@ -794,7 +794,7 @@ Route::add_processor (boost::shared_ptr<Processor> processor, ProcessorList::ite
                        // XXX: do we want to emit the signal here ? change call order.
                        processor->activate ();
                }
-               processor->ActiveChanged.connect (bind (mem_fun (_session, &Session::update_latency_compensation), false, false));
+               processor->ActiveChanged.connect (sigc::bind (sigc::mem_fun (_session, &Session::update_latency_compensation), false, false));
 
                _output->set_user_latency (0);
        }
@@ -1049,7 +1049,7 @@ Route::add_processors (const ProcessorList& others, ProcessorList::iterator iter
                                return -1;
                        }
 
-                       (*i)->ActiveChanged.connect (bind (mem_fun (_session, &Session::update_latency_compensation), false, false));
+                       (*i)->ActiveChanged.connect (sigc::bind (sigc::mem_fun (_session, &Session::update_latency_compensation), false, false));
                }
 
                _output->set_user_latency (0);
index d7ac672f9a54f3a8b5bac1da7c21fd17cc8526d4..3d98c6154809a17bea66e166a5989e086d0d5be3 100644 (file)
@@ -38,7 +38,6 @@
 #include "i18n.h"
 
 using namespace ARDOUR;
-using namespace sigc;
 using namespace std;
 
 RouteGroup::RouteGroup (Session& s, const string &n, Flag f, Property p)
@@ -78,7 +77,7 @@ RouteGroup::add (boost::shared_ptr<Route> r)
        routes->push_back (r);
 
        r->join_route_group (this);
-       r->GoingAway.connect (sigc::bind (mem_fun (*this, &RouteGroup::remove_when_going_away), boost::weak_ptr<Route> (r)));
+       r->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &RouteGroup::remove_when_going_away), boost::weak_ptr<Route> (r)));
        
        _session.set_dirty ();
        changed (); /* EMIT SIGNAL */
index 0b71ad84cd20961a04640982f560697a552fb8dc..fbe8edfa80f304a4fdb40147552f9bb155b3aa0f 100644 (file)
@@ -191,8 +191,8 @@ Session::Session (AudioEngine &eng,
 
        _state_of_the_state = StateOfTheState (_state_of_the_state & ~Dirty);
 
-       Config->ParameterChanged.connect (bind (mem_fun (*this, &Session::config_changed), false));
-       config.ParameterChanged.connect (bind (mem_fun (*this, &Session::config_changed), true));
+       Config->ParameterChanged.connect (sigc::bind (sigc::mem_fun (*this, &Session::config_changed), false));
+       config.ParameterChanged.connect (sigc::bind (sigc::mem_fun (*this, &Session::config_changed), true));
 
        if (was_dirty) {
                DirtyChanged (); /* EMIT SIGNAL */
@@ -324,7 +324,7 @@ Session::Session (AudioEngine &eng,
 
        _state_of_the_state = StateOfTheState (_state_of_the_state & ~Dirty);
 
-       Config->ParameterChanged.connect (bind (mem_fun (*this, &Session::config_changed), false));
+       Config->ParameterChanged.connect (sigc::bind (sigc::mem_fun (*this, &Session::config_changed), false));
 }
 
 Session::~Session ()
@@ -411,7 +411,7 @@ Session::destroy ()
                tmp = i;
                ++tmp;
                
-               DEBUG_TRACE(DEBUG::Destruction, string_compose ("Dropping for region %1 (%2); pre-ref = %2\n", i->second->name(), i->second.get(), i->second.use_count()));
+               DEBUG_TRACE(DEBUG::Destruction, string_compose ("Dropping for region %1 (%2); pre-ref = %3\n", i->second->name(), i->second.get(), i->second.use_count()));
                i->second->drop_references ();
                DEBUG_TRACE(DEBUG::Destruction, string_compose ("region post ref = %1\n", i->second.use_count()));
                i = tmp;
@@ -514,12 +514,15 @@ Session::when_engine_running ()
 
        BootMessage (_("Using configuration"));
 
-       Config->map_parameters (bind (mem_fun (*this, &Session::config_changed), false));
-       config.map_parameters (bind (mem_fun (*this, &Session::config_changed), true));
+       boost::function<void (std::string)> ff (boost::bind (&Session::config_changed, this, _1, false));
+       boost::function<void (std::string)> ft (boost::bind (&Session::config_changed, this, _1, true));
+
+       Config->map_parameters (ff);
+       config.map_parameters (ft);
 
        /* every time we reconnect, recompute worst case output latencies */
 
-       _engine.Running.connect (mem_fun (*this, &Session::set_worst_io_latencies));
+       _engine.Running.connect (sigc::mem_fun (*this, &Session::set_worst_io_latencies));
 
        if (synced_to_jack()) {
                _engine.transport_stop ();
@@ -873,7 +876,7 @@ Session::diskstream_playlist_changed (boost::weak_ptr<Diskstream> wp)
        boost::shared_ptr<Playlist> playlist;
 
        if ((playlist = dstream->playlist()) != 0) {
-               playlist->LengthChanged.connect (mem_fun (this, &Session::playlist_length_changed));
+               playlist->LengthChanged.connect (sigc::mem_fun (this, &Session::playlist_length_changed));
        }
 
        /* see comment in playlist_length_changed () */
@@ -1013,9 +1016,9 @@ Session::set_auto_punch_location (Location* location)
        auto_punch_end_changed_connection.disconnect();
        auto_punch_changed_connection.disconnect();
 
-       auto_punch_start_changed_connection = location->start_changed.connect (mem_fun (this, &Session::auto_punch_start_changed));
-       auto_punch_end_changed_connection = location->end_changed.connect (mem_fun (this, &Session::auto_punch_end_changed));
-       auto_punch_changed_connection = location->changed.connect (mem_fun (this, &Session::auto_punch_changed));
+       auto_punch_start_changed_connection = location->start_changed.connect (sigc::mem_fun (this, &Session::auto_punch_start_changed));
+       auto_punch_end_changed_connection = location->end_changed.connect (sigc::mem_fun (this, &Session::auto_punch_end_changed));
+       auto_punch_changed_connection = location->changed.connect (sigc::mem_fun (this, &Session::auto_punch_changed));
 
        location->set_auto_punch (true, this);
 
@@ -1057,11 +1060,11 @@ Session::set_auto_loop_location (Location* location)
        auto_loop_changed_connection.disconnect();
 
        auto_loop_start_changed_connection = location->start_changed.connect (
-                       mem_fun (this, &Session::auto_loop_changed));
+                       sigc::mem_fun (this, &Session::auto_loop_changed));
        auto_loop_end_changed_connection = location->end_changed.connect (
-                       mem_fun (this, &Session::auto_loop_changed));
+                       sigc::mem_fun (this, &Session::auto_loop_changed));
        auto_loop_changed_connection = location->changed.connect (
-                       mem_fun (this, &Session::auto_loop_changed));
+                       sigc::mem_fun (this, &Session::auto_loop_changed));
 
        location->set_auto_loop (true, this);
 
@@ -1655,7 +1658,7 @@ Session::new_midi_track (TrackMode mode, RouteGroup* route_group, uint32_t how_m
                                route_group->add (track);
                        }
 
-                       track->DiskstreamChanged.connect (mem_fun (this, &Session::resort_routes));
+                       track->DiskstreamChanged.connect (sigc::mem_fun (this, &Session::resort_routes));
                        //track->set_remote_control_id (control_id);
 
                        new_routes.push_back (track);
@@ -1830,7 +1833,7 @@ Session::new_audio_track (int input_channels, int output_channels, TrackMode mod
 
                        track->audio_diskstream()->non_realtime_input_change();
 
-                       track->DiskstreamChanged.connect (mem_fun (this, &Session::resort_routes));
+                       track->DiskstreamChanged.connect (sigc::mem_fun (this, &Session::resort_routes));
                        track->set_remote_control_id (control_id);
                        ++control_id;
 
@@ -2155,12 +2158,12 @@ Session::add_routes (RouteList& new_routes, bool save)
 
                boost::weak_ptr<Route> wpr (*x);
 
-               (*x)->listen_changed.connect (sigc::bind (mem_fun (*this, &Session::route_listen_changed), wpr));
-               (*x)->solo_changed.connect (sigc::bind (mem_fun (*this, &Session::route_solo_changed), wpr));
-               (*x)->mute_changed.connect (mem_fun (*this, &Session::route_mute_changed));
-               (*x)->output()->changed.connect (mem_fun (*this, &Session::set_worst_io_latencies_x));
-               (*x)->processors_changed.connect (mem_fun (*this, &Session::route_processors_changed));
-               (*x)->route_group_changed.connect (mem_fun (*this, &Session::route_group_changed));
+               (*x)->listen_changed.connect (sigc::bind (sigc::mem_fun (*this, &Session::route_listen_changed), wpr));
+               (*x)->solo_changed.connect (sigc::bind (sigc::mem_fun (*this, &Session::route_solo_changed), wpr));
+               (*x)->mute_changed.connect (sigc::mem_fun (*this, &Session::route_mute_changed));
+               (*x)->output()->changed.connect (sigc::mem_fun (*this, &Session::set_worst_io_latencies_x));
+               (*x)->processors_changed.connect (sigc::mem_fun (*this, &Session::route_processors_changed));
+               (*x)->route_group_changed.connect (sigc::mem_fun (*this, &Session::route_group_changed));
 
                if ((*x)->is_master()) {
                        _master_out = (*x);
@@ -2300,11 +2303,11 @@ Session::add_diskstream (boost::shared_ptr<Diskstream> dstream)
                /* writer goes out of scope, copies ds back to main */
        }
 
-       dstream->PlaylistChanged.connect (sigc::bind (mem_fun (*this, &Session::diskstream_playlist_changed), boost::weak_ptr<Diskstream> (dstream)));
+       dstream->PlaylistChanged.connect (sigc::bind (sigc::mem_fun (*this, &Session::diskstream_playlist_changed), boost::weak_ptr<Diskstream> (dstream)));
        /* this will connect to future changes, and check the current length */
        diskstream_playlist_changed (boost::weak_ptr<Diskstream> (dstream));
 
-       dstream->RecordEnableChanged.connect (mem_fun (*this, &Session::update_have_rec_enabled_diskstream));
+       dstream->RecordEnableChanged.connect (sigc::mem_fun (*this, &Session::update_have_rec_enabled_diskstream));
 
        dstream->prepare ();
 
@@ -2818,8 +2821,8 @@ Session::add_regions (vector<boost::shared_ptr<Region> >& new_regions)
                                }
                        }
 
-                       region->StateChanged.connect (sigc::bind (mem_fun (*this, &Session::region_changed), boost::weak_ptr<Region>(region)));
-                       region->GoingAway.connect (sigc::bind (mem_fun (*this, &Session::remove_region), boost::weak_ptr<Region>(region)));
+                       region->StateChanged.connect (sigc::bind (sigc::mem_fun (*this, &Session::region_changed), boost::weak_ptr<Region>(region)));
+                       region->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &Session::remove_region), boost::weak_ptr<Region>(region)));
 
                        update_region_name_map (region);
                }
@@ -3007,7 +3010,7 @@ Session::add_source (boost::shared_ptr<Source> source)
        }
 
        if (result.second) {
-               source->GoingAway.connect (sigc::bind (mem_fun (this, &Session::remove_source), boost::weak_ptr<Source> (source)));
+               source->GoingAway.connect (sigc::bind (sigc::mem_fun (this, &Session::remove_source), boost::weak_ptr<Source> (source)));
                set_dirty();
        }
 
@@ -3398,7 +3401,7 @@ Session::add_playlist (boost::shared_ptr<Playlist> playlist, bool unused)
 
        bool existing = playlists->add (playlist);
        if (!existing) {
-               playlist->GoingAway.connect (sigc::bind (mem_fun (*this, &Session::remove_playlist), boost::weak_ptr<Playlist>(playlist)));
+               playlist->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &Session::remove_playlist), boost::weak_ptr<Playlist>(playlist)));
        }
 
        if (unused) {
@@ -3572,7 +3575,7 @@ Session::graph_reordered ()
 void
 Session::add_processor (Processor* processor)
 {
-       processor->GoingAway.connect (sigc::bind (mem_fun (*this, &Session::remove_processor), processor));
+       processor->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &Session::remove_processor), processor));
        set_dirty();
 }
 
index 0cdb85bfd0f160ccdca41479206484067a581d9b..899b85e7701504aa0010b89113f857ddd278c86a 100644 (file)
@@ -112,12 +112,12 @@ SessionConfiguration::set_variables (const XMLNode& node)
 
 }
 void
-SessionConfiguration::map_parameters (sigc::slot<void, std::string> theSlot)
+SessionConfiguration::map_parameters (boost::function<void (std::string)>& functor)
 {
 #undef  CONFIG_VARIABLE
 #undef  CONFIG_VARIABLE_SPECIAL
-#define CONFIG_VARIABLE(type,var,name,value)                 theSlot (name);
-#define CONFIG_VARIABLE_SPECIAL(type,var,name,value,mutator) theSlot (name);
+#define CONFIG_VARIABLE(type,var,name,value)                 functor (name);
+#define CONFIG_VARIABLE_SPECIAL(type,var,name,value,mutator) functor (name);
 #include "ardour/session_configuration_vars.h"
 #undef  CONFIG_VARIABLE
 #undef  CONFIG_VARIABLE_SPECIAL
index 4388fe6dca6d437fbe208315d36518d5d53e361a..d006097f09bbc7e6fe8f687521e065e6a03523f6 100644 (file)
@@ -209,38 +209,38 @@ Session::set_mmc_port (string port_tag)
        }
 
        mmc->Play.connect
-               (mem_fun (*this, &Session::mmc_deferred_play));
+               (sigc::mem_fun (*this, &Session::mmc_deferred_play));
        mmc->DeferredPlay.connect
-               (mem_fun (*this, &Session::mmc_deferred_play));
+               (sigc::mem_fun (*this, &Session::mmc_deferred_play));
        mmc->Stop.connect
-               (mem_fun (*this, &Session::mmc_stop));
+               (sigc::mem_fun (*this, &Session::mmc_stop));
        mmc->FastForward.connect
-               (mem_fun (*this, &Session::mmc_fast_forward));
+               (sigc::mem_fun (*this, &Session::mmc_fast_forward));
        mmc->Rewind.connect
-               (mem_fun (*this, &Session::mmc_rewind));
+               (sigc::mem_fun (*this, &Session::mmc_rewind));
        mmc->Pause.connect
-               (mem_fun (*this, &Session::mmc_pause));
+               (sigc::mem_fun (*this, &Session::mmc_pause));
        mmc->RecordPause.connect
-               (mem_fun (*this, &Session::mmc_record_pause));
+               (sigc::mem_fun (*this, &Session::mmc_record_pause));
        mmc->RecordStrobe.connect
-               (mem_fun (*this, &Session::mmc_record_strobe));
+               (sigc::mem_fun (*this, &Session::mmc_record_strobe));
        mmc->RecordExit.connect
-               (mem_fun (*this, &Session::mmc_record_exit));
+               (sigc::mem_fun (*this, &Session::mmc_record_exit));
        mmc->Locate.connect
-               (mem_fun (*this, &Session::mmc_locate));
+               (sigc::mem_fun (*this, &Session::mmc_locate));
        mmc->Step.connect
-               (mem_fun (*this, &Session::mmc_step));
+               (sigc::mem_fun (*this, &Session::mmc_step));
        mmc->Shuttle.connect
-               (mem_fun (*this, &Session::mmc_shuttle));
+               (sigc::mem_fun (*this, &Session::mmc_shuttle));
        mmc->TrackRecordStatusChange.connect
-               (mem_fun (*this, &Session::mmc_record_enable));
+               (sigc::mem_fun (*this, &Session::mmc_record_enable));
 
 
        /* also handle MIDI SPP because its so common */
 
-       _mmc_port->input()->start.connect (mem_fun (*this, &Session::spp_start));
-       _mmc_port->input()->contineu.connect (mem_fun (*this, &Session::spp_continue));
-       _mmc_port->input()->stop.connect (mem_fun (*this, &Session::spp_stop));
+       _mmc_port->input()->start.connect (sigc::mem_fun (*this, &Session::spp_start));
+       _mmc_port->input()->contineu.connect (sigc::mem_fun (*this, &Session::spp_continue));
+       _mmc_port->input()->stop.connect (sigc::mem_fun (*this, &Session::spp_stop));
 
        Config->set_mmc_port_name (port_tag);
 
@@ -641,7 +641,7 @@ Session::mmc_step (MIDI::MachineControl &/*mmc*/, int steps)
        if (!step_queued) {
                if (midi_control_ui) {
                        RefPtr<TimeoutSource> tsrc = TimeoutSource::create (100);
-                       tsrc->connect (mem_fun (*this, &Session::mmc_step_timeout));
+                       tsrc->connect (sigc::mem_fun (*this, &Session::mmc_step_timeout));
                        tsrc->attach (midi_control_ui->main_loop()->get_context());
                        step_queued = true;
                }
index 55ca8da0bc2a5a57377f0fc8736ee638baf5806f..5af0dc4caa873d3cc4cacdfeb10af4f330e73447 100644 (file)
@@ -73,7 +73,7 @@ SessionPlaylists::add (boost::shared_ptr<Playlist> playlist)
 
        if (!existing) {
                playlists.insert (playlists.begin(), playlist);
-               playlist->InUse.connect (sigc::bind (mem_fun (*this, &SessionPlaylists::track), boost::weak_ptr<Playlist>(playlist)));
+               playlist->InUse.connect (sigc::bind (sigc::mem_fun (*this, &SessionPlaylists::track), boost::weak_ptr<Playlist>(playlist)));
        }
 
        return existing;
index 74578039a8fe19032627bd185f5cdf429e051b4f..3364de9815d54a8900a33f460d54d7b265126da2 100644 (file)
@@ -165,7 +165,7 @@ Session::first_stage_init (string fullpath, string snapshot_name)
        _base_frame_rate = _current_frame_rate;
 
        _tempo_map = new TempoMap (_current_frame_rate);
-       _tempo_map->StateChanged.connect (mem_fun (*this, &Session::tempo_map_changed));
+       _tempo_map->StateChanged.connect (sigc::mem_fun (*this, &Session::tempo_map_changed));
 
 
        _non_soloed_outs_muted = false;
@@ -267,20 +267,20 @@ Session::first_stage_init (string fullpath, string snapshot_name)
        delta_accumulator_cnt = 0;
        _slave_state = Stopped;
 
-       _engine.GraphReordered.connect (mem_fun (*this, &Session::graph_reordered));
+       _engine.GraphReordered.connect (sigc::mem_fun (*this, &Session::graph_reordered));
 
        /* These are all static "per-class" signals */
 
-       RegionFactory::CheckNewRegion.connect (mem_fun (*this, &Session::add_region));
-       SourceFactory::SourceCreated.connect (mem_fun (*this, &Session::add_source));
-       PlaylistFactory::PlaylistCreated.connect (mem_fun (*this, &Session::add_playlist));
-       Processor::ProcessorCreated.connect (mem_fun (*this, &Session::add_processor));
-       NamedSelection::NamedSelectionCreated.connect (mem_fun (*this, &Session::add_named_selection));
-       AutomationList::AutomationListCreated.connect (mem_fun (*this, &Session::add_automation_list));
+       RegionFactory::CheckNewRegion.connect (sigc::mem_fun (*this, &Session::add_region));
+       SourceFactory::SourceCreated.connect (sigc::mem_fun (*this, &Session::add_source));
+       PlaylistFactory::PlaylistCreated.connect (sigc::mem_fun (*this, &Session::add_playlist));
+       Processor::ProcessorCreated.connect (sigc::mem_fun (*this, &Session::add_processor));
+       NamedSelection::NamedSelectionCreated.connect (sigc::mem_fun (*this, &Session::add_named_selection));
+       AutomationList::AutomationListCreated.connect (sigc::mem_fun (*this, &Session::add_automation_list));
 
-       Controllable::Destroyed.connect (mem_fun (*this, &Session::remove_controllable));
+       Controllable::Destroyed.connect (sigc::mem_fun (*this, &Session::remove_controllable));
 
-       IO::PortCountChanged.connect (mem_fun (*this, &Session::ensure_buffers));
+       IO::PortCountChanged.connect (sigc::mem_fun (*this, &Session::ensure_buffers));
 
        /* stop IO objects from doing stuff until we're ready for them */
 
@@ -332,15 +332,15 @@ Session::second_stage_init (bool new_session)
        _state_of_the_state = StateOfTheState (_state_of_the_state|CannotSave|Loading);
 
 
-       _locations.changed.connect (mem_fun (this, &Session::locations_changed));
-       _locations.added.connect (mem_fun (this, &Session::locations_added));
+       _locations.changed.connect (sigc::mem_fun (this, &Session::locations_changed));
+       _locations.added.connect (sigc::mem_fun (this, &Session::locations_added));
        setup_click_sounds (0);
        setup_midi_control ();
 
        /* Pay attention ... */
 
-       _engine.Halted.connect (mem_fun (*this, &Session::engine_halted));
-       _engine.Xrun.connect (mem_fun (*this, &Session::xrun_recovery));
+       _engine.Halted.connect (sigc::mem_fun (*this, &Session::engine_halted));
+       _engine.Xrun.connect (sigc::mem_fun (*this, &Session::xrun_recovery));
 
        try {
                when_engine_running();
index a632ae067da874b642c9be640d414bce8b8bf4ea..63bb4c4213138c21ee74b936483dc1c051f38d0d 100644 (file)
@@ -47,7 +47,6 @@
 
 using namespace std;
 using namespace ARDOUR;
-using namespace sigc;
 using namespace PBD;
 
 void
index 5836bdd95cc3ad2d9ede2b3ea13de2c4c7a73e5e..7f66486425260c4fe4cee2915bb70926694e7f10 100644 (file)
@@ -193,7 +193,7 @@ SndFileSource::init_sndfile ()
        }
 
        AudioFileSource::HeaderPositionOffsetChanged.connect (
-                       mem_fun (*this, &SndFileSource::handle_header_position_change));
+                       sigc::mem_fun (*this, &SndFileSource::handle_header_position_change));
 }
 
 int
index 7f7ca32907dba2908177b818ac5b6d898cc243b3..ab0a7144a8088857949e46865f0bc845983b0fc4 100644 (file)
@@ -36,8 +36,8 @@ void Ticker::set_session(Session& s)
         _session = &s;
 
         if (_session) {
-                _session->tick.connect(mem_fun (*this, &Ticker::tick));
-                _session->GoingAway.connect(mem_fun (*this, &Ticker::going_away));
+                _session->tick.connect(sigc::mem_fun (*this, &Ticker::tick));
+                _session->GoingAway.connect(sigc::mem_fun (*this, &Ticker::going_away));
         }
 }
 
@@ -47,13 +47,13 @@ void MidiClockTicker::set_session(Session& s)
 
         if (_session) {
                 _session->MIDIClock_PortChanged.connect(
-                                mem_fun (*this, &MidiClockTicker::update_midi_clock_port));
+                                sigc::mem_fun (*this, &MidiClockTicker::update_midi_clock_port));
                 _session->TransportStateChange.connect(
-                                mem_fun (*this, &MidiClockTicker::transport_state_changed));
+                                sigc::mem_fun (*this, &MidiClockTicker::transport_state_changed));
                 _session->PositionChanged.connect(
-                                mem_fun (*this, &MidiClockTicker::position_changed));
+                                sigc::mem_fun (*this, &MidiClockTicker::position_changed));
                 _session->TransportLooped.connect(
-                                mem_fun (*this, &MidiClockTicker::transport_looped));
+                                sigc::mem_fun (*this, &MidiClockTicker::transport_looped));
                 update_midi_clock_port();
         }
 }
index 878f6e4fd03da6495485126ab04dbc14f2ddad0f..8574de0dec5188e49ff4d8a03f9e94067acd40e3 100644 (file)
@@ -21,6 +21,7 @@
 #define __pbd_ui_callback_h__
 
 #include <boost/function.hpp>
+#include <boost/bind.hpp> /* we don't need this here, but anything calling call_slot() probably will, so this is convenient */
 #include <glibmm/thread.h>
 
 namespace PBD
index 7e67c52adf88e4b8359faf35ee428faaadafe621..4a151d44d085a57faec4d71ee73b7cce429e7226 100644 (file)
@@ -47,7 +47,6 @@
 #include "i18n.h"
 
 using namespace ARDOUR;
-using namespace sigc;
 using namespace std;
 using namespace Glib;
 
@@ -83,7 +82,7 @@ OSC::OSC (Session& s, uint32_t port)
 
        // "Application Hooks"
        session_loaded (s);
-       session->Exported.connect (mem_fun (*this, &OSC::session_exported));
+       session->Exported.connect (sigc::mem_fun (*this, &OSC::session_exported));
 }
 
 OSC::~OSC()
@@ -213,7 +212,7 @@ OSC::thread_init ()
 {
        if (_osc_unix_server) {
                Glib::RefPtr<IOSource> src = IOSource::create (lo_server_get_socket_fd (_osc_unix_server), IO_IN|IO_HUP|IO_ERR);
-               src->connect (bind (sigc::mem_fun (*this, &OSC::osc_input_handler), _osc_unix_server));
+               src->connect (sigc::bind (sigc::mem_fun (*this, &OSC::osc_input_handler), _osc_unix_server));
                src->attach (_main_loop->get_context());
                local_server = src->gobj();
                g_source_ref (local_server);
@@ -221,7 +220,7 @@ OSC::thread_init ()
 
        if (_osc_server) {
                Glib::RefPtr<IOSource> src  = IOSource::create (lo_server_get_socket_fd (_osc_server), IO_IN|IO_HUP|IO_ERR);
-               src->connect (bind (sigc::mem_fun (*this, &OSC::osc_input_handler), _osc_server));
+               src->connect (sigc::bind (sigc::mem_fun (*this, &OSC::osc_input_handler), _osc_server));
                src->attach (_main_loop->get_context());
                remote_server = src->gobj();
                g_source_ref (remote_server);
@@ -573,7 +572,7 @@ OSC::listen_to_route (boost::shared_ptr<Route> route, lo_address addr)
        */
        
        if (!route_exists) {
-               route->GoingAway.connect (bind (mem_fun (*this, &OSC::drop_route), boost::weak_ptr<Route> (route)));
+               route->GoingAway.connect (sigc::bind (sigc::mem_fun (*this, &OSC::drop_route), boost::weak_ptr<Route> (route)));
        }
 }