diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2014-07-11 15:41:28 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2014-07-14 10:08:55 -0500 |
commit | 62cab525f0e017b00f3f4010f1c51834821ef79c (patch) | |
tree | 30d3e300a14a99fde5e897f9eec30c44e816eb4c /gtk2_ardour/editor_mouse.cc | |
parent | 492c933a69baf04678e68567550f1ea2965f4786 (diff) |
(Mixbus profile only) tentatively remove the Zoom and Cut tools, to save space in the toolbar and reduce some highly redundant functions
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r-- | gtk2_ardour/editor_mouse.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 4f7d587b24..c12d11ff3f 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -232,6 +232,11 @@ Editor::set_mouse_mode (MouseMode m, bool force) return; } + if (ARDOUR::Profile->get_mixbus()) { + if ( m == MouseZoom) m = MouseObject; + if ( m == MouseCut) m = MouseObject; + } + Glib::RefPtr<Action> act; switch (m) { @@ -286,6 +291,11 @@ Editor::mouse_mode_toggled (MouseMode m) Glib::RefPtr<Action> act; Glib::RefPtr<ToggleAction> tact; + if (ARDOUR::Profile->get_mixbus()) { + if ( m == MouseZoom) m = MouseObject; + if ( m == MouseCut) m = MouseObject; + } + switch (m) { case MouseRange: act = ActionManager::get_action (X_("MouseMode"), X_("set-mouse-mode-range")); |