Don't displace background for spinbuttons in the theming engine

This is a leftover from the older GtkStyle code, this is handled
through CSS spacings instead.
This commit is contained in:
Carlos Garnacho 2011-01-18 19:39:09 +01:00
parent 474ed78b25
commit 687ac4d4aa

View File

@ -1731,15 +1731,6 @@ gtk_theming_engine_render_background (GtkThemingEngine *engine,
junction = gtk_theming_engine_get_junction_sides (engine);
if (gtk_theming_engine_has_class (engine, "spinbutton") &&
gtk_theming_engine_has_class (engine, "button"))
{
x += 2;
y += 2;
width -= 4;
height -= 4;
}
flags = gtk_theming_engine_get_state (engine);
gtk_theming_engine_get (engine, flags,
"border-width", &border,