Update metronome tooltip on gain change
authorDaniel Sheeler <dsheeler@pobox.com>
Fri, 20 Jan 2017 23:06:44 +0000 (17:06 -0600)
committerRobin Gareus <robin@gareus.org>
Sat, 21 Jan 2017 00:38:53 +0000 (01:38 +0100)
gtk2_ardour/ardour_ui2.cc
gtk2_ardour/ardour_ui_options.cc

index 48a5ea53a737561b7d7ab3e43652b46efc971b26..a5b1a93e93a9b121c5b82c641b68bf63b1a1d94a 100644 (file)
@@ -84,7 +84,7 @@ ARDOUR_UI::setup_tooltips ()
        set_tip (auto_return_button, _("Return to last playback start when stopped"));
        set_tip (follow_edits_button, _("Playhead follows Range tool clicks, and Range selections"));
        set_tip (auto_input_button, _("Track Input Monitoring automatically follows transport state"));
-       set_tip (click_button, _("Enable/Disable metronome\n\nRight-click to access preferences\nMouse-wheel to modify level"));
+       parameter_changed("click-gain");
        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."));
index a2853ff5cd6459c15bcc17ce389a69f0d81dbd8f..4b45a80a37c4a8e002bb31505e1c9e2059853316 100644 (file)
@@ -519,6 +519,9 @@ ARDOUR_UI::parameter_changed (std::string p)
                        /* force a redraw */
                        gtk_rc_reset_styles (gtk_settings_get_default());
                }
+       } else if (p == "click-gain") {
+               float gain_db = accurate_coefficient_to_dB (Config->get_click_gain());
+               set_tip (click_button, string_compose ("Enable/Disable metronome\n\nRight-click to access preferences\nMouse-wheel to modify level\n\nLevel %1dbFS", gain_db));
        }
 }