diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-15 12:32:41 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-15 12:32:41 -0500 |
commit | f6e88ead01b1823f1374afdbc3d8b9a5639e7f46 (patch) | |
tree | 9cddcd830da9d58bf364b89ee298a973a6ead8d1 /gtk2_ardour/option_editor.cc | |
parent | 8b230014412b90b78240685b16a8d4e624cc5ce6 (diff) |
move theme manager into preferences window
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 137d6b98c8..aa975b6b94 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -445,6 +445,21 @@ OptionEditor::add_option (std::string const & pn, OptionEditorComponent* o) o->set_state_from_config (); } +/** Add a new page + * @param pn Page name (will be created if it doesn't already exist) + * @param w widget that fills the page + */ +void +OptionEditor::add_page (std::string const & pn, Gtk::Widget& w) +{ + if (_pages.find (pn) == _pages.end()) { + _pages[pn] = new OptionEditorPage (_notebook, pn); + } + + OptionEditorPage* p = _pages[pn]; + p->box.pack_start (w, true, true); +} + void OptionEditor::set_current_page (string const & p) { |