From 3876b488791a91b85d501b56a656dfb3bfffd052 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Thu, 24 Jul 2014 15:47:05 -0500 Subject: [PATCH] Add track-rec/mute/solo actions to menu, so users can bind them Make Fit-Tracks sensitive to track selections --- gtk2_ardour/ardour.menus.in | 9 +++++++-- gtk2_ardour/editor_actions.cc | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/ardour.menus.in b/gtk2_ardour/ardour.menus.in index bdf8bbcf33..a4f8955843 100644 --- a/gtk2_ardour/ardour.menus.in +++ b/gtk2_ardour/ardour.menus.in @@ -311,6 +311,11 @@ + + + + + @@ -322,8 +327,8 @@ - - + + diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index 01e9fd15f6..0d18215893 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -405,7 +405,8 @@ Editor::register_actions () } ActionManager::track_selection_sensitive_actions.push_back (act); - reg_sens (editor_actions, "fit-tracks", _("Fit Selected Tracks"), sigc::mem_fun(*this, &Editor::fit_selected_tracks)); + act = reg_sens (editor_actions, "fit-tracks", _("Fit Selected Tracks"), sigc::mem_fun(*this, &Editor::fit_selected_tracks)); + ActionManager::track_selection_sensitive_actions.push_back (act); act = reg_sens (editor_actions, "track-height-largest", _("Largest"), sigc::bind ( sigc::mem_fun(*this, &Editor::set_track_height), HeightLargest));