diff --git a/gtk2_ardour/canvas_vars.h b/gtk2_ardour/canvas_vars.h
index f61508da8a..3f729596b3 100644
--- a/gtk2_ardour/canvas_vars.h
+++ b/gtk2_ardour/canvas_vars.h
@@ -235,6 +235,7 @@ BUTTON_VARS(MixerStripNameButton, "mixer strip name button")
BUTTON_VARS(MidiInputButton, "midi input button")
BUTTON_VARS(LockButton, "lock button")
BUTTON_VARS(GenericButton, "generic button")
+BUTTON_VARS(PeakDisplayButton, "peak display")
#define CLOCK_VARS(root,name) \
CANVAS_VARIABLE(canvasvar_ ## root ## Background, name ": background") \
diff --git a/gtk2_ardour/default_ui_config.in b/gtk2_ardour/default_ui_config.in
index 126eb125c0..beaa007930 100644
--- a/gtk2_ardour/default_ui_config.in
+++ b/gtk2_ardour/default_ui_config.in
@@ -285,6 +285,12 @@
+
+
+
+
+
+
diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc
index 53af7df9f7..ecec402784 100644
--- a/gtk2_ardour/gain_meter.cc
+++ b/gtk2_ardour/gain_meter.cc
@@ -101,12 +101,11 @@ GainMeterBase::GainMeterBase (Session* s, bool horizontal, int fader_length, int
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");
+ peak_display.set_name ("peak display");
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.unset_flags (Gtk::CAN_FOCUS);
- peak_display.set_alignment(0.5);
+ peak_display.set_alignment (0.5, 0.5);
gain_automation_style_button.set_name ("mixer strip button");
gain_automation_state_button.set_name ("mixer strip button");
@@ -365,7 +364,7 @@ GainMeterBase::reset_peak_display ()
level_meter->clear_meters();
max_peak = -INFINITY;
peak_display.set_text (_("-inf"));
- peak_display.set_name ("MixerStripPeakDisplay");
+ peak_display.set_active (false);
}
void
@@ -860,8 +859,9 @@ GainMeterBase::update_meters()
peak_display.set_text (buf);
}
}
+
if (mpeak >= Config->get_meter_peak()) {
- peak_display.set_name ("MixerStripPeakDisplayPeak");
+ peak_display.set_active (true);
}
}
diff --git a/gtk2_ardour/gain_meter.h b/gtk2_ardour/gain_meter.h
index 4c4b0735d3..57215b48b5 100644
--- a/gtk2_ardour/gain_meter.h
+++ b/gtk2_ardour/gain_meter.h
@@ -111,8 +111,7 @@ class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr
Gtkmm2ext::SliderController *gain_slider;
Gtk::Adjustment gain_adjustment;
Gtkmm2ext::FocusEntry gain_display;
- Gtkmm2ext::FocusEntry peak_display;
-// Gtk::Button peak_display;
+ ArdourButton peak_display;
Gtk::DrawingArea meter_metric_area;
Gtk::DrawingArea meter_ticks1_area;
Gtk::DrawingArea meter_ticks2_area;