move theme manager into preferences window

This commit is contained in:
Paul Davis 2014-12-15 12:32:41 -05:00
parent 8b23001441
commit f6e88ead01
10 changed files with 40 additions and 43 deletions

View file

@ -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)
{