make sure the prefs editor sets up its own window correctly
This commit is contained in:
parent
03b354a99e
commit
5723676092
@ -1720,7 +1720,7 @@ private:
|
||||
|
||||
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")
|
||||
{
|
||||
@ -3248,3 +3248,20 @@ RCOptionEditor::populate_sync_options ()
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -41,6 +41,8 @@ public:
|
||||
|
||||
void populate_sync_options ();
|
||||
|
||||
Gtk::Window* use_own_window ();
|
||||
|
||||
private:
|
||||
void parameter_changed (std::string const &);
|
||||
void ltc_generator_volume_changed ();
|
||||
|
Loading…
Reference in New Issue
Block a user