Commit a7099d14 authored by Cosimo Cecchi's avatar Cosimo Cecchi

range: simplify code

Now that everything is in the main gadget, we can just let it propagate
drawing to its children.
parent b6f0b6be
......@@ -2259,6 +2259,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);
}
......@@ -2269,20 +2271,7 @@ gtk_range_draw (GtkWidget *widget,
GtkRange *range = GTK_RANGE (widget);
GtkRangePrivate *priv = range->priv;
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);
if (priv->stepper_b_gadget)
gtk_css_gadget_draw (priv->stepper_b_gadget, cr);
if (priv->stepper_c_gadget)
gtk_css_gadget_draw (priv->stepper_c_gadget, cr);
if (priv->stepper_d_gadget)
gtk_css_gadget_draw (priv->stepper_d_gadget, cr);
gtk_css_gadget_draw (priv->gadget, cr);
return GDK_EVENT_PROPAGATE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment