diff options
author | Robin Gareus <robin@gareus.org> | 2013-03-12 22:00:09 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-03-13 20:28:15 +0100 |
commit | 0c3e840700a915fc1476cef73c591048f688f81e (patch) | |
tree | 3241845f899cfed86217db2f6f589740b2b9c04a /gtk2_ardour/editor_selection.cc | |
parent | d91565093965b3405774acd878b3baf38839f4e4 (diff) |
videotimline
squashed 694 commits from http://gareus.org/gitweb/?p=ardour3.git
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 1089381a15..fbe46a1ae9 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1047,6 +1047,10 @@ Editor::sensitize_the_right_region_actions () bool have_midi = false; bool have_locked = false; bool have_unlocked = false; +#ifdef WITH_VIDEOTIMELINE + bool have_video_locked = false; + bool have_video_unlocked = false; +#endif bool have_position_lock_style_audio = false; bool have_position_lock_style_music = false; bool have_muted = false; @@ -1088,6 +1092,13 @@ Editor::sensitize_the_right_region_actions () } else { have_unlocked = true; } +#ifdef WITH_VIDEOTIMELINE + if (r->video_locked()) { + have_video_locked = true; + } else { + have_video_unlocked = true; + } +#endif if (r->position_lock_style() == MusicTime) { have_position_lock_style_music = true; @@ -1212,6 +1223,14 @@ Editor::sensitize_the_right_region_actions () // a->set_inconsistent (); } +#ifdef WITH_VIDEOTIMELINE + a = Glib::RefPtr<ToggleAction>::cast_dynamic (_region_actions->get_action("toggle-region-video-lock")); + a->set_active (have_video_locked && !have_video_unlocked); + if (have_video_locked && have_video_unlocked) { + // a->set_inconsistent (); + } +#endif + a = Glib::RefPtr<ToggleAction>::cast_dynamic (_region_actions->get_action("toggle-region-lock-style")); a->set_active (have_position_lock_style_music && !have_position_lock_style_audio); |