[gtk-css-engine] [style] Fix drawing of the 'flat-box' primitive.
- From: Robert Staudinger <robsta src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk-css-engine] [style] Fix drawing of the 'flat-box' primitive.
- Date: Mon, 22 Jun 2009 10:21:35 -0400 (EDT)
commit a8178e12ba1c59972503bdc00069752db87d9904
Author: Robert Staudinger <robsta gnome org>
Date: Mon Jun 22 16:19:33 2009 +0200
[style] Fix drawing of the 'flat-box' primitive.
Consistently use the CSS notation with separating dash.
Also update the 'moblesse' theme accordingly.
data/user-agent.css | 2 +-
src/gce-style.c | 2 +-
themes/moblesse/gtk-2.0/gtkrc.css | 8 ++++++--
3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/data/user-agent.css b/data/user-agent.css
index 4e0abcf..044c965 100644
--- a/data/user-agent.css
+++ b/data/user-agent.css
@@ -41,7 +41,7 @@ GtkCurve > flat-box {
border-radius: inherit;
}
-GtkEntry > flat-box.entry_bg {
+GtkEntry > flat-box.entry-bg {
background: inherit;
}
diff --git a/src/gce-style.c b/src/gce-style.c
index daa723a..95813f5 100644
--- a/src/gce-style.c
+++ b/src/gce-style.c
@@ -318,7 +318,7 @@ draw_flat_box (GtkStyle *self,
gce_maps_get_state (state),
gce_maps_get_shadow (shadow),
NULL, NULL, NULL, NULL,
- role ? role : "flatbox");
+ role ? role : "flat-box");
rectangle (GCE_STYLE (self), node, window, area, widget,
x, y, width, height, TRUE);
diff --git a/themes/moblesse/gtk-2.0/gtkrc.css b/themes/moblesse/gtk-2.0/gtkrc.css
index 2b1093c..47b3bb2 100644
--- a/themes/moblesse/gtk-2.0/gtkrc.css
+++ b/themes/moblesse/gtk-2.0/gtkrc.css
@@ -7,10 +7,10 @@
/* Terminate recursion for properties inherited by the builtin stylesheet.
border-radius: none;
border-image: none;
- ... once it works */
+ FIXME ... once it works */
}
-GtkButton {
+GtkButton, GtkComboBox, GtkEntry {
border: 1px solid;
}
@@ -18,3 +18,7 @@ GtkButton:prelight {
/* Use shorthand notation, because that's what's inherited. */
background: gtk-color(selected_bg_color);
}
+
+GtkEntry {
+ background: gtk-color(base_color);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]