forked from AuroraMiddleware/gtk
range: move slider drawing where it belongs
The slider gadget is a child of the trough gadget, so draw it from there.
This commit is contained in:
parent
f0d9afd300
commit
6827bd5e04
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user