[Sugar-devel] [PATCH] GtkLabel: make the background transparent

Simon Schampijer simon at schampijer.de
Wed Aug 29 05:43:55 EDT 2012


From: Simon Schampijer <simon at laptop.org>

The GtkLabel does respect background css properties now [1][2]. Drawing
them transparent by default gives us the same behavior us before.

Signed-off-by: Simon Schampijer <simon at laptop.org>

[1] http://git.gnome.org/browse/gtk+/commit/?id=03bf85ba07f455a92283a3030fb8441b776b7e38
[2] https://bugzilla.gnome.org/show_bug.cgi?id=670743
---
 gtk3/theme/gtk-widgets.css.em | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index 5549970..96aa3fa 100644
--- a/gtk3/theme/gtk-widgets.css.em
+++ b/gtk3/theme/gtk-widgets.css.em
@@ -138,6 +138,10 @@ icon_large = icon_base * 5
     color: @black;
 }
 
+GtkLabel, GtkLabel:insensitive {
+    background-color: transparent;
+}
+
 /* Handle this differently? */
 .window *:insensitive {
     background-color: @panel_grey;
-- 
1.7.11.4



More information about the Sugar-devel mailing list