From 687ac4d4aa11244889da3b2b234b34b45cbb4d0e Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 18 Jan 2011 19:39:09 +0100 Subject: [PATCH] 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. --- gtk/gtkthemingengine.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index e2e78e4a92..80b02b0e6b 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -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,