RCOptionEditor::RCOptionEditor ()
: OptionEditor (Config, string_compose (_("%1 Preferences"), PROGRAM_NAME))
- , Tabbable (*this, _("Preferences"))
+ , Tabbable (*this, _("Preferences")) /* pack self-as-vbox into tabbable */
, _rc_config (Config)
, _mixer_strip_visibility ("mixer-element-visibility")
{
parameter_changed ("sync-source");
}
+
+Gtk::Window*
+RCOptionEditor::use_own_window ()
+{
+ bool new_window = !own_window();
+
+ Gtk::Window* win = Tabbable::use_own_window ();
+
+ if (win && new_window) {
+ win->set_name ("PreferencesWindow");
+ ARDOUR_UI::instance()->setup_toplevel_window (*win, _("Preferences"), this);
+
+ cerr << "created prefs window\n";
+ }
+
+ return win;
+}
void populate_sync_options ();
+ Gtk::Window* use_own_window ();
+
private:
void parameter_changed (std::string const &);
void ltc_generator_volume_changed ();