13
0

narrow down multi-channel tracks

This commit is contained in:
Robin Gareus 2013-07-10 18:38:25 +02:00
parent f43aa995a8
commit 6d1ca9ce42

View File

@ -303,6 +303,14 @@ GainMeterBase::set_type (MeterType t)
void
GainMeter::setup_meters (int len)
{
switch (_width) {
case Wide:
hbox.set_homogeneous(true);
break;
case Narrow:
hbox.set_homogeneous(false);
break;
}
GainMeterBase::setup_meters (len);
}
@ -996,7 +1004,11 @@ GainMeter::get_gm_width ()
min_w += sz.width;
fader_alignment.size_request (sz);
if (_width == Wide)
return max(sz.width * 2, min_w * 2) + 6;
else
return sz.width + min_w + 6;
}
gint