[gtk+] Don't displace background for spinbuttons in the theming engine
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't displace background for spinbuttons in the theming engine
- Date: Wed, 19 Jan 2011 03:40:43 +0000 (UTC)
commit 687ac4d4aa11244889da3b2b234b34b45cbb4d0e
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jan 18 19:39:09 2011 +0100
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 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index e2e78e4..80b02b0 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]