diff options
author | Carl Hetherington <carl@carlh.net> | 2009-04-29 17:30:35 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-04-29 17:30:35 +0000 |
commit | e41527d5bac8a9369ddbd4f4f48c66f5b662bfc8 (patch) | |
tree | f650457b382ef8921e122dc81ee48aeba6aaf9d9 /gtk2_ardour | |
parent | 9e776feac62e7a9609a29fa233f21d5278475a9d (diff) |
Only make record button solid red (and big clock red) when things are actually being recorded (ie when record is in progress and one or more tracks are armed). As per mantis #2604.
git-svn-id: svn://localhost/ardour2/branches/3.0@5012 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 838588487b..ce435c4ad5 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -1957,23 +1957,20 @@ ARDOUR_UI::transport_rec_enable_blink (bool onoff) if (session == 0) { return; } + + Session::RecordState const r = session->record_status (); + bool const h = session->have_rec_enabled_diskstream (); - switch (session->record_status()) { - case Session::Enabled: + if (r == Session::Enabled || (r == Session::Recording && !h)) { if (onoff) { rec_button.set_visual_state (2); } else { rec_button.set_visual_state (0); } - break; - - case Session::Recording: + } else if (r == Session::Recording && h) { rec_button.set_visual_state (1); - break; - - default: + } else { rec_button.set_visual_state (0); - break; } } @@ -3175,13 +3172,13 @@ ARDOUR_UI::record_state_changed () return; } - switch (session->record_status()) { - case Session::Recording: + Session::RecordState const r = session->record_status (); + bool const h = session->have_rec_enabled_diskstream (); + + if (r == Session::Recording && h) { big_clock.set_widget_name ("BigClockRecording"); - break; - default: + } else { big_clock.set_widget_name ("BigClockNonRecording"); - break; } } |