From 15078e5a6d8fbea7708f6abd1b8ec035900927ff Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 17 Jan 2013 02:32:48 +0000 Subject: [PATCH] fix up handling of size allocation + setting git-svn-id: svn://localhost/ardour2/branches/3.0@13866 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/gtkmm2ext/pixfader.cc | 5 ++--- 1 file 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 + #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