From 656e30cd3a6b1ab2380ea212d2c9b47b2c44d043 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sat, 1 Aug 2009 18:59:58 +0200 Subject: [PATCH] Looking at widget->requisition in size_allocate() is useless Use the passed GtkAllocation for calculating things, not widget->requisition. --- libgimpwidgets/gimpcolorscale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgimpwidgets/gimpcolorscale.c b/libgimpwidgets/gimpcolorscale.c index 5d8f9f633f..005bde3667 100644 --- a/libgimpwidgets/gimpcolorscale.c +++ b/libgimpwidgets/gimpcolorscale.c @@ -135,8 +135,8 @@ gimp_color_scale_size_allocate (GtkWidget *widget, focus += focus_padding; } - range->min_slider_size = (MIN (widget->requisition.width, - widget->requisition.height) - 2 * focus) / 2; + range->min_slider_size = (MIN (allocation->width, + allocation->height) - 2 * focus) / 2; if (GTK_WIDGET_CLASS (parent_class)->size_allocate) GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);