diff options
author | Robin Gareus <robin@gareus.org> | 2014-01-04 05:29:06 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-01-04 05:42:31 +0100 |
commit | 52d6cbc1e97a82d2f0537f544150bcee8f4d17f5 (patch) | |
tree | 80c9d1a2a4e1dadd5f6143238cc17a01b83d9813 /libs | |
parent | 5ef7900ea41cd55a112765d231de48a5b6fa0bc5 (diff) |
fix PixFader size allocation
previously faders in the processor box were only sized correctly
after the 2nd iteration: allocate -> request -> allocate
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gtkmm2ext/pixfader.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/pixfader.cc b/libs/gtkmm2ext/pixfader.cc index 0185550259..7007cf0efe 100644 --- a/libs/gtkmm2ext/pixfader.cc +++ b/libs/gtkmm2ext/pixfader.cc @@ -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 () |