LevelBar: Avoid unnecessarily copying allocation

Just use the original allocation, instead of copying it and passing that
This commit is contained in:
Daniel Boles 2017-08-12 14:09:09 +01:00
parent 6bdb4b12cb
commit 53ce02344c

View File

@ -462,9 +462,8 @@ gtk_level_bar_allocate_trough_continuous (GtkLevelBar *self,
inverted = gtk_level_bar_get_real_inverted (self);
/* allocate the empty (unfilled) part */
block_area = *allocation;
gtk_css_gadget_allocate (self->priv->block_gadget[inverted ? 0 : 1],
&block_area,
allocation,
baseline,
out_clip);