mirror of https://github.com/GNOME/gimp.git
Don't touch widget->requisition in size_request()
gimp_ruler_size_request(): modify the passed GtkRequisition, not widget->requisition.
This commit is contained in:
parent
f712a316df
commit
2abca796bf
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue