diff options
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 103aa89a12..e5746584d9 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -474,15 +474,11 @@ OptionEditor::OptionEditor (PBD::Configuration* c, std::string const & t) { using namespace Notebook_Helpers; - set_border_width (4); - - pack_start (_notebook, true, true); _notebook.set_show_tabs (true); _notebook.set_show_border (true); _notebook.set_name ("OptionsNotebook"); - show_all (); /* Watch out for changes to parameters */ _config->ParameterChanged.connect (config_connection, invalidator (*this), boost::bind (&OptionEditor::parameter_changed, this, _1), gui_context()); @@ -591,3 +587,22 @@ DirectoryOption::selection_changed () { _set (poor_mans_glob(_file_chooser.get_filename ())); } + +/*--------------------------*/ + +OptionEditorContainer::OptionEditorContainer (PBD::Configuration* c, string const& str) + : OptionEditor (c, str) +{ + set_border_width (4); + pack_start (notebook(), true, true); + show_all (); +} + +OptionEditorWindow::OptionEditorWindow (PBD::Configuration* c, string const& str) + : OptionEditor (c, str) +{ + container.set_border_width (4); + container.pack_start (notebook(), true, true); + container.show_all (); + add (container); +} |