[gtk+/gtk-3-22] LevelBar: Avoid unnecessarily copying allocation



commit 53ce02344c777f8a8529fa12607b89e389e827b6
Author: Daniel Boles <dboles src gmail com>
Date:   Sat Aug 12 14:09:09 2017 +0100

    LevelBar: Avoid unnecessarily copying allocation
    
    Just use the original allocation, instead of copying it and passing that

 gtk/gtklevelbar.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklevelbar.c b/gtk/gtklevelbar.c
index 7fc1279..8cb46ce 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]