diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-15 14:03:19 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-15 14:03:19 +0000 |
commit | b02e95f201a6c665e7f1d529b558dca2f4a6924e (patch) | |
tree | 4bbdea4bc5433724c664227028ff07d26f693d2c /gtk2_ardour/editor_selection.cc | |
parent | 020e4a89dc6806a6fc3dd7ffe0dd7cc52ef91c8b (diff) |
make region gain line visibility global, not per-region
git-svn-id: svn://localhost/ardour2/branches/3.0@11492 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index b99aa67ea5..ba85743e2d 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1071,8 +1071,6 @@ Editor::sensitize_the_right_region_actions () bool have_opaque = false; bool have_non_opaque = false; bool have_not_at_natural_position = false; - bool have_envelope_visible = false; - bool have_envelope_invisible = false; bool have_envelope_active = false; bool have_envelope_inactive = false; bool have_non_unity_scale_amplitude = false; @@ -1127,24 +1125,6 @@ Editor::sensitize_the_right_region_actions () } if (ar) { - /* its a bit unfortunate that "envelope visible" is a view-only - property. we have to find the regionview to able to check - its current setting. - */ - - have_envelope_invisible = false; - - if (*i) { - AudioRegionView* arv = dynamic_cast<AudioRegionView*> (*i); - if (arv) { - if (arv->envelope_visible()) { - have_envelope_visible = true; - } else { - have_envelope_invisible = true; - } - } - } - if (ar->envelope_active()) { have_envelope_active = true; } else { @@ -1205,12 +1185,6 @@ Editor::sensitize_the_right_region_actions () if (have_audio) { - if (have_envelope_visible && !have_envelope_invisible) { - Glib::RefPtr<ToggleAction>::cast_dynamic (_region_actions->get_action("toggle-region-gain-envelope-visible"))->set_active (); - } else if (have_envelope_visible && have_envelope_invisible) { - // _region_actions->get_action("toggle-region-gain-envelope-visible")->set_inconsistent (); - } - if (have_envelope_active && !have_envelope_inactive) { Glib::RefPtr<ToggleAction>::cast_dynamic (_region_actions->get_action("toggle-region-gain-envelope-active"))->set_active (); } else if (have_envelope_active && have_envelope_inactive) { |