Commit 68ed166c authored by Benjamin Otte's avatar Benjamin Otte

range: Use right state when querying margin

parent 2a1a483e
......@@ -2004,7 +2004,7 @@ gtk_range_draw (GtkWidget *widget,
}
gtk_style_context_save_to_node (context, priv->trough_node);
gtk_style_context_get_margin (context, widget_state, &margin);
gtk_style_context_get_margin (context, gtk_style_context_get_state (context), &margin);
x += margin.left;
y += margin.top;
......@@ -2159,7 +2159,7 @@ gtk_range_draw (GtkWidget *widget,
cairo_clip (cr);
gtk_style_context_save_to_node (context, priv->slider_node);
gtk_style_context_get_margin (context, widget_state, &margin);
gtk_style_context_get_margin (context, gtk_style_context_get_state (context), &margin);
gtk_render_slider (context, cr,
priv->slider.x + margin.left,
......
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