diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-21 18:37:00 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-21 18:37:00 +0000 |
commit | cdf37e613b773c5b64e82697f36a489d6bd40771 (patch) | |
tree | 8d9eff90fca9f487a87c099fd13aa148844c6ee0 /gtk2_ardour/editor_selection.cc | |
parent | 280ade047c5fc2f8ae7a9ed004810f144e4be096 (diff) |
fix deadlock in playlist::partition(); new first idle model, including message about loading visual data; make h-faders use scroll up/down and be scalable-clickable; new track menu stuff (waveform scaling/shape); fix up ordering of ruler menus; fix initial sensitivity of region menu operations
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3097 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index ba12ca0a33..86ab115536 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -764,6 +764,8 @@ Editor::track_selection_changed () (*i)->set_selected (false); } } + + ActionManager::set_sensitive (ActionManager::track_selection_sensitive_actions, !selection->tracks.empty()); } void @@ -796,14 +798,8 @@ Editor::time_selection_changed () } void -Editor::region_selection_changed () +Editor::sensitize_the_right_region_actions (bool have_selected_regions) { - for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) { - (*i)->set_selected_regionviews (selection->regions); - } - - bool have_selected_regions = !selection->regions.empty(); - for (vector<Glib::RefPtr<Action> >::iterator x = ActionManager::region_selection_sensitive_actions.begin(); x != ActionManager::region_selection_sensitive_actions.end(); ++x) { @@ -822,6 +818,17 @@ Editor::region_selection_changed () (*x)->set_sensitive (have_selected_regions); } } +} + + +void +Editor::region_selection_changed () +{ + for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) { + (*i)->set_selected_regionviews (selection->regions); + } + + sensitize_the_right_region_actions (!selection->regions.empty()); zoomed_to_region = false; } |