diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-11 13:52:27 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-11 13:52:27 +0000 |
commit | cd2047cbffc5e0270acab555364bb9d958fe7927 (patch) | |
tree | 711a5db2e9526df02e7504fe84b812bfcdef9348 /gtk2_ardour/ardour_ui2.cc | |
parent | a74310ebbef5acec1a90aad6caed08b4f5c210c4 (diff) |
Change the feedback alert to a flashing button; works
around part of #4432.
git-svn-id: svn://localhost/ardour2/branches/3.0@10539 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui2.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui2.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index e7cac302f7..9209b61afb 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -141,6 +141,7 @@ ARDOUR_UI::setup_tooltips () set_tip (time_master_button, string_compose (_("Does %1 control the time?"), PROGRAM_NAME)); set_tip (solo_alert_button, _("When active, something is soloed.\nClick to de-solo everything")); set_tip (auditioning_alert_button, _("When active, auditioning is taking place\nClick to stop the audition")); + set_tip (feedback_alert_button, _("When active, there is a feedback loop.")); set_tip (primary_clock, _("Primary Clock")); set_tip (secondary_clock, _("Secondary Clock")); @@ -324,9 +325,12 @@ ARDOUR_UI::setup_transport () solo_alert_button.signal_button_press_event().connect (sigc::mem_fun(*this,&ARDOUR_UI::solo_alert_press), false); auditioning_alert_button.set_name ("rude audition"); auditioning_alert_button.signal_button_press_event().connect (sigc::mem_fun(*this,&ARDOUR_UI::audition_alert_press), false); + feedback_alert_button.set_name ("feedback alert"); + feedback_alert_button.signal_button_press_event().connect (sigc::mem_fun (*this, &ARDOUR_UI::feedback_alert_press), false); alert_box.pack_start (solo_alert_button, true, false); alert_box.pack_start (auditioning_alert_button, true, false); + alert_box.pack_start (feedback_alert_button, true, false); HBox* tbox = manage (new HBox); tbox->set_spacing (2); @@ -512,6 +516,12 @@ ARDOUR_UI::solo_alert_press (GdkEventButton*) return true; } +bool +ARDOUR_UI::feedback_alert_press (GdkEventButton *) +{ + return true; +} + void ARDOUR_UI::solo_blink (bool onoff) { @@ -573,6 +583,20 @@ ARDOUR_UI::audition_blink (bool onoff) } void +ARDOUR_UI::feedback_blink (bool onoff) +{ + if (_feedback_exists) { + if (onoff) { + feedback_alert_button.set_active (true); + } else { + feedback_alert_button.set_active (false); + } + } else { + feedback_alert_button.set_active (false); + } +} + +void ARDOUR_UI::set_transport_sensitivity (bool yn) { ActionManager::set_sensitive (ActionManager::transport_sensitive_actions, yn); |