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:
parent
474ed78b25
commit
687ac4d4aa
@ -1731,15 +1731,6 @@ gtk_theming_engine_render_background (GtkThemingEngine *engine,
|
|||||||
|
|
||||||
junction = gtk_theming_engine_get_junction_sides (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);
|
flags = gtk_theming_engine_get_state (engine);
|
||||||
gtk_theming_engine_get (engine, flags,
|
gtk_theming_engine_get (engine, flags,
|
||||||
"border-width", &border,
|
"border-width", &border,
|
||||||
|
Loading…
Reference in New Issue
Block a user