[gtk+/wip/cosimoc/range-gadget: 41/63] range: move slider drawing where it belongs



commit b89f9aafba199c79e3c86fe529ae532b3ee5a573
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Feb 23 10:45:19 2016 -0800

    range: move slider drawing where it belongs
    
    The slider gadget is a child of the trough gadget, so draw it from
    there.

 gtk/gtkrange.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 4e3432b..32b1451 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2254,6 +2254,8 @@ gtk_range_render_trough (GtkCssGadget *gadget,
   if (priv->has_origin)
     gtk_css_gadget_draw (priv->highlight_gadget, cr);
 
+  gtk_css_gadget_draw (priv->slider_gadget, cr);
+
   return gtk_widget_has_visible_focus (widget);
 }
 
@@ -2271,8 +2273,6 @@ gtk_range_draw (GtkWidget *widget,
   if (draw_trough)
     gtk_css_gadget_draw (priv->trough_gadget, cr);
 
-  gtk_css_gadget_draw (priv->slider_gadget, cr);
-
   if (priv->stepper_a_gadget)
     gtk_css_gadget_draw (priv->stepper_a_gadget, cr);
 


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