13
0

fix PixFader size allocation

previously faders in the processor box were only sized correctly
after the 2nd iteration: allocate -> request -> allocate
This commit is contained in:
Robin Gareus 2014-01-04 05:29:06 +01:00
parent 5ef7900ea4
commit 52d6cbc1e9

View File

@ -54,6 +54,12 @@ PixFader::PixFader (Gtk::Adjustment& adj, int orientation, int fader_length, int
adjustment.signal_value_changed().connect (mem_fun (*this, &PixFader::adjustment_changed));
adjustment.signal_changed().connect (mem_fun (*this, &PixFader::adjustment_changed));
if (_orien == VERT) {
DrawingArea::set_size_request(girth, span);
} else {
DrawingArea::set_size_request(span, girth);
}
}
PixFader::~PixFader ()