From 53ce02344c777f8a8529fa12607b89e389e827b6 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Sat, 12 Aug 2017 14:09:09 +0100 Subject: [PATCH] LevelBar: Avoid unnecessarily copying allocation Just use the original allocation, instead of copying it and passing that --- gtk/gtklevelbar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtklevelbar.c b/gtk/gtklevelbar.c index 7fc12794c4..8cb46ce059 100644 --- a/gtk/gtklevelbar.c +++ b/gtk/gtklevelbar.c @@ -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);