Don't touch widget->requisition in size_request()

gimp_ruler_size_request(): modify the passed GtkRequisition, not
widget->requisition.
This commit is contained in:
Michael Natterer 2009-08-01 18:57:58 +02:00
parent f712a316df
commit 2abca796bf
1 changed files with 4 additions and 4 deletions

View File

@ -589,13 +589,13 @@ gimp_ruler_size_request (GtkWidget *widget,
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{
widget->requisition.width = style->xthickness * 2 + 1;
widget->requisition.height = style->ythickness * 2 + size;
requisition->width = style->xthickness * 2 + 1;
requisition->height = style->ythickness * 2 + size;
}
else
{
widget->requisition.width = style->xthickness * 2 + size;
widget->requisition.height = style->ythickness * 2 + 1;
requisition->width = style->xthickness * 2 + size;
requisition->height = style->ythickness * 2 + 1;
}
}