save width of mixer-strip when changing _all_ strips
This commit is contained in:
parent
92494b8965
commit
fc367f9b21
|
@ -1572,11 +1572,11 @@ MixerStrip::width_button_pressed (GdkEventButton* ev)
|
|||
if (Keyboard::modifier_state_contains (ev->state, Keyboard::ModifierMask (Keyboard::PrimaryModifier | Keyboard::TertiaryModifier)) && _mixer_owned) {
|
||||
switch (_width) {
|
||||
case Wide:
|
||||
_mixer.set_strip_width (Narrow);
|
||||
_mixer.set_strip_width (Narrow, true);
|
||||
break;
|
||||
|
||||
case Narrow:
|
||||
_mixer.set_strip_width (Wide);
|
||||
_mixer.set_strip_width (Wide, true);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -1477,12 +1477,12 @@ Mixer_UI::strip_scroller_button_release (GdkEventButton* ev)
|
|||
}
|
||||
|
||||
void
|
||||
Mixer_UI::set_strip_width (Width w)
|
||||
Mixer_UI::set_strip_width (Width w, bool save)
|
||||
{
|
||||
_strip_width = w;
|
||||
|
||||
for (list<MixerStrip*>::iterator i = strips.begin(); i != strips.end(); ++i) {
|
||||
(*i)->set_width_enum (w, this);
|
||||
(*i)->set_width_enum (w, save ? (*i)->width_owner() : this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ class Mixer_UI : public Gtk::Window, public PBD::ScopedConnectionList, public AR
|
|||
|
||||
PluginSelector* plugin_selector();
|
||||
|
||||
void set_strip_width (Width);
|
||||
void set_strip_width (Width, bool save = false);
|
||||
Width get_strip_width () const { return _strip_width; }
|
||||
|
||||
void unselect_strip_in_display (MixerStrip*);
|
||||
|
|
Loading…
Reference in New Issue
Block a user