summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-09 16:15:55 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-09 16:15:55 +0000
commit57a046804cd12466cff2cb3c084dc5b95b31c52d (patch)
tree31c6372c75704011573f08ee363a9971afe8f2c1 /gtk2_ardour
parente2d62d9af44093cf6fc9fe2349286f5f1a82626a (diff)
MCP: different meter debug trace; initial support for track selection
git-svn-id: svn://localhost/ardour2/branches/3.0@11852 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.cc7
-rw-r--r--gtk2_ardour/editor.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 5295337c5d..d331b6aee1 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -713,6 +713,7 @@ Editor::Editor ()
ControlProtocol::Redo.connect (*this, invalidator (*this), boost::bind (&Editor::redo, this, true), gui_context());
ControlProtocol::ScrollTimeline.connect (*this, invalidator (*this), ui_bind (&Editor::control_scroll, this, _1), gui_context());
ControlProtocol::SelectByRID.connect (*this, invalidator (*this), ui_bind (&Editor::control_select, this, _1), gui_context());
+ ControlProtocol::UnselectTrack.connect (*this, invalidator (*this), ui_bind (&Editor::control_unselect, this), gui_context());
BasicUI::AccessAction.connect (*this, invalidator (*this), ui_bind (&Editor::access_action, this, _1, _2), gui_context());
/* problematic: has to return a value and thus cannot be x-thread */
@@ -922,6 +923,12 @@ Editor::zoom_adjustment_changed ()
}
void
+Editor::control_unselect ()
+{
+ selection->clear_tracks ();
+}
+
+void
Editor::control_select (uint32_t rid)
{
/* handles the (static) signal from the ControlProtocol class that
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h
index d5b2cb9172..92675edb4e 100644
--- a/gtk2_ardour/editor.h
+++ b/gtk2_ardour/editor.h
@@ -989,6 +989,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
void control_scroll (float);
void control_select (uint32_t rid);
+ void control_unselect ();
void access_action (std::string,std::string);
bool deferred_control_scroll (framepos_t);
sigc::connection control_scroll_connection;