From 66cd3d365cd798045364493426aab11ca7421b01 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 27 Jan 2012 22:58:52 +0000 Subject: tweak appearance of a FaderOption in the option editor(s) git-svn-id: svn://localhost/ardour2/branches/3.0@11371 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/option_editor.cc | 7 +++++-- gtk2_ardour/option_editor.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index f118566405..2142d23faa 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -184,12 +184,15 @@ FaderOption::FaderOption (string const & i, string const & n, sigc::slot _label.set_text (n + ":"); _label.set_name (X_("OptionsLabel")); + _fader_centering_box.pack_start (*_db_slider, true, false); + _box.set_spacing (4); - _box.pack_start (*_db_slider, false, false); + _box.set_homogeneous (false); + _box.pack_start (_fader_centering_box, false, false); _box.pack_start (_db_display, false, false); _box.show_all (); - set_size_request_to_display_given_text (_db_display, "-99.0", 12, 12); + set_size_request_to_display_given_text (_db_display, "-99.00", 12, 12); _db_adjustment.signal_value_changed().connect (sigc::mem_fun (*this, &FaderOption::db_changed)); } diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index dd34b85057..c70e6c6bab 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -365,6 +365,7 @@ private: Gtk::Entry _db_display; Gtk::Label _label; Gtk::HBox _box; + Gtk::VBox _fader_centering_box; sigc::slot _get; sigc::slot _set; }; -- cgit v1.2.3