forked from AuroraMiddleware/gtk
LevelBar: Avoid unnecessarily copying allocation
Just use the original allocation, instead of copying it and passing that
This commit is contained in:
parent
6bdb4b12cb
commit
53ce02344c
@ -462,9 +462,8 @@ gtk_level_bar_allocate_trough_continuous (GtkLevelBar *self,
|
|||||||
inverted = gtk_level_bar_get_real_inverted (self);
|
inverted = gtk_level_bar_get_real_inverted (self);
|
||||||
|
|
||||||
/* allocate the empty (unfilled) part */
|
/* allocate the empty (unfilled) part */
|
||||||
block_area = *allocation;
|
|
||||||
gtk_css_gadget_allocate (self->priv->block_gadget[inverted ? 0 : 1],
|
gtk_css_gadget_allocate (self->priv->block_gadget[inverted ? 0 : 1],
|
||||||
&block_area,
|
allocation,
|
||||||
baseline,
|
baseline,
|
||||||
out_clip);
|
out_clip);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user