set correct font for peak display button
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 21 Oct 2014 21:26:21 +0000 (17:26 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 21 Oct 2014 21:26:21 +0000 (17:26 -0400)
gtk2_ardour/gain_meter.cc

index ecec4027845903c23323b05a8c8848c1b19efaab..fcb22f5575c076ef4f716526db07c1e317438774 100644 (file)
@@ -102,7 +102,7 @@ GainMeterBase::GainMeterBase (Session* s, bool horizontal, int fader_length, int
        gain_display.set_alignment(0.5);
 
        peak_display.set_name ("peak display");
-       set_size_request_to_display_given_text (peak_display, "-80.g", 2, 6); /* note the descender */
+       peak_display.set_layout_font (ARDOUR_UI::config()->get_canvasvar_SmallFont());
        max_peak = minus_infinity();
        peak_display.set_text (_("-inf"));
        peak_display.set_alignment (0.5, 0.5);