diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-17 02:32:48 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-17 02:32:48 +0000 |
commit | 15078e5a6d8fbea7708f6abd1b8ec035900927ff (patch) | |
tree | 3de28192c639aecb30cea4fa7424e5c26c193974 /libs | |
parent | db3da02446f7c418e1c2234c691aba3c943d1389 (diff) |
fix up handling of size allocation + setting
git-svn-id: svn://localhost/ardour2/branches/3.0@13866 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gtkmm2ext/pixfader.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/pixfader.cc b/libs/gtkmm2ext/pixfader.cc index 7eea18c837..8b52fbbf23 100644 --- a/libs/gtkmm2ext/pixfader.cc +++ b/libs/gtkmm2ext/pixfader.cc @@ -20,6 +20,7 @@ #include <iostream> + #include "gtkmm2ext/pixfader.h" #include "gtkmm2ext/keyboard.h" #include "gtkmm2ext/rgb_macros.h" @@ -289,10 +290,8 @@ PixFader::on_size_allocate (Gtk::Allocation& alloc) DrawingArea::on_size_allocate(alloc); if (_orien == VERT) { - span = alloc.get_height(); girth = alloc.get_width (); } else { - span = alloc.get_width(); girth = alloc.get_height (); } @@ -510,7 +509,7 @@ PixFader::set_fader_length (int l) { span = l; update_unity_position (); - queue_draw (); + queue_resize (); } void |