mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
move theme manager into preferences window
This commit is contained in:
parent
8b23001441
commit
f6e88ead01
10 changed files with 40 additions and 43 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue