summaryrefslogtreecommitdiff
path: root/gtk2_ardour/gain_meter.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-07-09 16:23:14 +0200
committerRobin Gareus <robin@gareus.org>2013-07-10 15:27:16 +0200
commit0f1f7ca4fdaa0a186c37592ed429388a5060f624 (patch)
tree1d51c5aacf8de32116f8e4e0ad2a260fc9bff17c /gtk2_ardour/gain_meter.cc
parent251031e354f6966f94e86091d65f85e5800d91bd (diff)
replace "-inf" with UTF8 infinity symbol
Diffstat (limited to 'gtk2_ardour/gain_meter.cc')
-rw-r--r--gtk2_ardour/gain_meter.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc
index 4f48ffa57a..70cabec4b5 100644
--- a/gtk2_ardour/gain_meter.cc
+++ b/gtk2_ardour/gain_meter.cc
@@ -102,7 +102,7 @@ GainMeterBase::GainMeterBase (Session* s, bool horizontal, int fader_length, int
peak_display.set_name ("MixerStripPeakDisplay");
set_size_request_to_display_given_text (peak_display, "-80.g", 2, 6); /* note the descender */
max_peak = minus_infinity();
- peak_display.set_label (_("-inf"));
+ peak_display.set_label ("-\u221e");
peak_display.unset_flags (Gtk::CAN_FOCUS);
gain_automation_style_button.set_name ("mixer strip button");
@@ -354,7 +354,7 @@ GainMeterBase::reset_peak_display ()
_meter->reset_max();
level_meter->clear_meters();
max_peak = -INFINITY;
- peak_display.set_label (_("-inf"));
+ peak_display.set_label ("-\u221e");
peak_display.set_name ("MixerStripPeakDisplay");
}
@@ -459,7 +459,7 @@ GainMeterBase::show_gain ()
switch (_data_type) {
case DataType::AUDIO:
if (v == 0.0) {
- strcpy (buf, _("-inf"));
+ strcpy (buf, "-\u221e");
} else {
snprintf (buf, sizeof (buf), "%.1f", accurate_coefficient_to_dB (slider_position_to_gain_with_max (v, Config->get_max_gain())));
}
@@ -850,7 +850,7 @@ GainMeterBase::update_meters()
if (mpeak > max_peak) {
max_peak = mpeak;
if (mpeak <= -200.0f) {
- peak_display.set_label (_("-inf"));
+ peak_display.set_label ("-\u221e");
} else {
snprintf (buf, sizeof(buf), "%.1f", mpeak);
peak_display.set_label (buf);