summaryrefslogtreecommitdiff
path: root/gtk2_ardour/gain_meter.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-07-01 07:09:27 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-07-01 17:47:05 -0400
commit47144ee7f44b3e9cf96c573167085ab1732746dd (patch)
treeb4cbece925f85da7e782d1babb1979c082752d8c /gtk2_ardour/gain_meter.cc
parent0ae634cb1e9733e6bade823b45473464efa4bac6 (diff)
minor no-op hacks (unneeded or suboptimal code)
Diffstat (limited to 'gtk2_ardour/gain_meter.cc')
-rw-r--r--gtk2_ardour/gain_meter.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc
index 59ed339495..b715bcc47d 100644
--- a/gtk2_ardour/gain_meter.cc
+++ b/gtk2_ardour/gain_meter.cc
@@ -129,13 +129,11 @@ GainMeterBase::GainMeterBase (Session* s, bool horizontal, int fader_length, int
gain_display.signal_activate().connect (sigc::mem_fun (*this, &GainMeter::gain_activated));
gain_display.signal_focus_in_event().connect (sigc::mem_fun (*this, &GainMeter::gain_focused), false);
gain_display.signal_focus_out_event().connect (sigc::mem_fun (*this, &GainMeter::gain_focused), false);
- gain_display.set_alignment(0.5);
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_text (_("-inf"));
- peak_display.set_alignment(0.5);
/* stuff related to the fact that the peak display is not, in
fact, supposed to be a text entry.
@@ -418,7 +416,7 @@ GainMeterBase::reset_peak_display ()
{
_meter->reset_max();
level_meter->clear_meters();
- max_peak = -INFINITY;
+ max_peak = minus_infinity ();
peak_display.set_text (_("-inf"));
peak_display.set_name ("MixerStripPeakDisplay");
}
@@ -964,6 +962,8 @@ GainMeter::GainMeter (Session* s, int fader_length)
, gain_display_box(true, 0)
, hbox(true, 2)
{
+ gain_display_box.set_border_width (0);
+
if (gain_display.get_parent()) {
gain_display.get_parent()->remove (gain_display);
}