13
0

Set mixer strip widths when the configuration option is changed. Fixes #2855.

git-svn-id: svn://localhost/ardour2/branches/3.0@7041 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-05-02 14:28:09 +00:00
parent 7fc2e8da30
commit 4f94ab5c39

View File

@ -515,6 +515,8 @@ Mixer_UI::set_session (Session* sess)
_session->route_group_removed.connect (_session_connections, invalidator (*this), boost::bind (&Mixer_UI::route_groups_changed, this), gui_context());
_session->config.ParameterChanged.connect (_session_connections, invalidator (*this), ui_bind (&Mixer_UI::parameter_changed, this, _1), gui_context());
Config->ParameterChanged.connect (*this, invalidator (*this), ui_bind (&Mixer_UI::parameter_changed, this, _1), gui_context ());
route_groups_changed ();
if (_visible) {
@ -1613,6 +1615,11 @@ Mixer_UI::parameter_changed (string const & p)
} else {
_group_tabs->hide ();
}
} else if (p == "default-narrow_ms") {
bool const s = Config->get_default_narrow_ms ();
for (list<MixerStrip*>::iterator i = strips.begin(); i != strips.end(); ++i) {
(*i)->set_width_enum (s ? Narrow : Wide, this);
}
}
}