actor: Minor cleanup

In clutter_allocate_align_fill(), x2/y2 may be set twice for no
particular reason; save a couple of lines by not doing this.

https://bugzilla.gnome.org/show_bug.cgi?id=703809
This commit is contained in:
Florian Müllner 2013-07-05 16:54:07 +02:00 committed by Emmanuele Bassi
parent a3b093d9c8
commit 5bab9a8655

View File

@ -15398,16 +15398,10 @@ clutter_actor_allocate_align_fill (ClutterActor *self,
x_align = 1.0 - x_align; x_align = 1.0 - x_align;
if (!x_fill) if (!x_fill)
{ allocation.x1 += ((available_width - child_width) * x_align);
allocation.x1 += ((available_width - child_width) * x_align);
allocation.x2 = allocation.x1 + child_width;
}
if (!y_fill) if (!y_fill)
{ allocation.y1 += ((available_height - child_height) * y_align);
allocation.y1 += ((available_height - child_height) * y_align);
allocation.y2 = allocation.y1 + child_height;
}
out: out: