diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-21 15:10:49 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:21 -0500 |
commit | 02c8d6d648a4d54dc796fd994106e74b2e9dae32 (patch) | |
tree | cfef34d65d34e99e7b03796dbc52658d8e263933 /gtk2_ardour/option_editor.cc | |
parent | b2dc5a52b788b77ceb826fcc897c8ead11b8a6ba (diff) |
the basics of tabbed
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index e963726531..103aa89a12 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -470,25 +470,19 @@ OptionEditorPage::OptionEditorPage (Gtk::Notebook& n, std::string const & t) * @param t Title for the dialog. */ OptionEditor::OptionEditor (PBD::Configuration* c, std::string const & t) - : ArdourWindow (t), _config (c) + : _config (c) { using namespace Notebook_Helpers; - set_default_size (300, 300); - // set_wmclass (X_("ardour_preferences"), PROGRAM_NAME); - - set_name ("Preferences"); - add_events (Gdk::KEY_PRESS_MASK | Gdk::KEY_RELEASE_MASK); - set_border_width (4); - add (_notebook); + pack_start (_notebook, true, true); _notebook.set_show_tabs (true); _notebook.set_show_border (true); _notebook.set_name ("OptionsNotebook"); - show_all_children(); + show_all (); /* Watch out for changes to parameters */ _config->ParameterChanged.connect (config_connection, invalidator (*this), boost::bind (&OptionEditor::parameter_changed, this, _1), gui_context()); |