summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-11-27 17:33:31 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-22 15:31:25 -0500
commite268a9d2aae5012d494680d851abe1415c2063c6 (patch)
tree54af03df19ea911f022522fbabcdc2939bbb9f7b /gtk2_ardour/option_editor.cc
parent30b065f6efcd3ecdbee10aef2e01eae55dcf8e8c (diff)
fix inheritance/class design to get both SessionOptionEditor and RCOptionEditor to work correctly
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r--gtk2_ardour/option_editor.cc23
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);
+}