[gtk+] range: Simplify highlight allocation



commit 7fe1037e84ffa867d83e73801ed59beea05bce2a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 26 13:50:42 2016 -0400

    range: Simplify highlight allocation
    
    Since we are really only interested in the center point of the
    slider allocation, the pre-computed slider geometry is perfectly
    fine, just use it always. This avoids the complication with
    gadget visibility.

 gtk/gtkrange.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 62d8f9d..0408a30 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2006,8 +2006,6 @@ gtk_range_allocate_trough (GtkCssGadget        *gadget,
     {
       GtkAllocation highlight_alloc, highlight_clip;
 
-      if (gtk_css_gadget_get_visible (priv->slider_gadget))
-        gtk_css_gadget_get_content_allocation (priv->slider_gadget, &slider_alloc, NULL);
       highlight_alloc = *allocation;
 
       if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)


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