summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-12-28 21:36:33 +0100
committerRobin Gareus <robin@gareus.org>2016-12-28 22:19:37 +0100
commit5860911eb2bf940aac96b97748501b71ef524c74 (patch)
treea607dd25cf65f35aca5a12d9feeb5e4b6d372701 /gtk2_ardour/option_editor.cc
parent4a0edd68e2ae13a5e5f977f1e6f808da75bf6d58 (diff)
Further preference-dialog re-layout work in progress..
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r--gtk2_ardour/option_editor.cc16
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.