diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-02 18:48:50 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-02 18:48:50 +0000 |
commit | 7e590cf96cc8090368158c3892e13ab627e87dea (patch) | |
tree | bc65f37a4834c71fc0b56134756ebe2f22e193a9 /gtk2_ardour/ardour_ui_dialogs.cc | |
parent | 97e11c790fe074bd6201a7f392bfc964bd471d02 (diff) |
not-yet-complete JACK session management patch (TODO: get program name, vary snapshot name, arrange quit when necessary)
git-svn-id: svn://localhost/ardour2/branches/3.0@6840 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dialogs.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index c010f695cb..0c1240e435 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -24,6 +24,7 @@ */ #include "ardour/session.h" +#include "ardour/audioengine.h" #include "actions.h" #include "ardour_ui.h" @@ -124,6 +125,10 @@ ARDOUR_UI::set_session (Session *s) _session->locations()->added.connect (_session_connections, MISSING_INVALIDATOR, ui_bind (&ARDOUR_UI::handle_locations_change, this, _1), gui_context()); _session->locations()->removed.connect (_session_connections, MISSING_INVALIDATOR, ui_bind (&ARDOUR_UI::handle_locations_change, this, _1), gui_context()); +#ifdef HAVE_JACK_SESSION + engine->JackSessionEvent.connect (*_session, MISSING_INVALIDATOR, ui_bind (&Session::jack_session_event, _session, _1), gui_context()); +#endif + /* Clocks are on by default after we are connected to a session, so show that here. */ |