[gtk+] range: fix fill level for vertical inverted scales



commit d000b212c6baeb2b85a9dd75266af0c02a2efb27
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Feb 29 12:53:08 2016 -0800

    range: fix fill level for vertical inverted scales

 gtk/gtkrange.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index b665ec2..bbfd3bc 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -1940,7 +1940,7 @@ gtk_range_allocate_trough (GtkCssGadget        *gadget,
           fill_alloc.height *= fill;
 
           if (should_invert (range))
-            fill_alloc.y += allocation->height - (fill_alloc.height * fill);
+            fill_alloc.y += allocation->height - fill_alloc.height;
         }
 
       gtk_css_gadget_allocate (priv->fill_gadget,


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