diff options
author | Robin Gareus <robin@gareus.org> | 2016-12-28 21:36:33 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-12-28 22:19:37 +0100 |
commit | 5860911eb2bf940aac96b97748501b71ef524c74 (patch) | |
tree | a607dd25cf65f35aca5a12d9feeb5e4b6d372701 /gtk2_ardour/option_editor.cc | |
parent | 4a0edd68e2ae13a5e5f977f1e6f808da75bf6d58 (diff) |
Further preference-dialog re-layout work in progress..
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 7102458d61..0a71a82b0f 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -478,16 +478,28 @@ ClockOption::set_session (Session* s) _clock.set_session (s); } +OptionEditorPage::OptionEditorPage () + : table (1, 3) +{ + init (); +} + OptionEditorPage::OptionEditorPage (Gtk::Notebook& n, std::string const & t) : table (1, 3) { - table.set_spacings (4); - table.set_col_spacing (0, 32); + init (); box.pack_start (table, false, false); box.set_border_width (4); n.append_page (box, t); } +void +OptionEditorPage::init () +{ + table.set_spacings (4); + table.set_col_spacing (0, 32); +} + /** Construct an OptionEditor. * @param o Configuration to edit. * @param t Title for the dialog. |