summaryrefslogtreecommitdiff
path: root/ccss-gtk
diff options
context:
space:
mode:
authorRobert Staudinger <robsta@gnome.org>2009-08-04 16:59:47 +0200
committerRobert Staudinger <robsta@gnome.org>2009-08-04 16:59:47 +0200
commit3c26429f902a3adfd89533f350ff67529eaa7f30 (patch)
tree9a51469af0dd7cd9fa82bbf75e0b67587c590840 /ccss-gtk
parentb32269ae8a279309b6401f76ef6b3b1c143491c2 (diff)
[gtk-stylesheet] Handle labels inside gtk-cell-view and gtk-menu-item
Propagate settings to the embedded label, so text shows up in the correct colour.
Diffstat (limited to 'ccss-gtk')
-rw-r--r--ccss-gtk/ccss-gtk-stylesheet.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ccss-gtk/ccss-gtk-stylesheet.c b/ccss-gtk/ccss-gtk-stylesheet.c
index 0123817..a70c36e 100644
--- a/ccss-gtk/ccss-gtk-stylesheet.c
+++ b/ccss-gtk/ccss-gtk-stylesheet.c
@@ -202,7 +202,8 @@ style_iterator (ccss_style_t const *style,
static gboolean
set_base_and_text (char const *type_name)
{
- static char const *_text_widgets[] = { "GtkEntry", "GtkTextView" };
+ static char const *_text_widgets[] = { "GtkCellView", "GtkEntry",
+ "GtkTextView" };
for (unsigned int i = 0; i < G_N_ELEMENTS (_text_widgets); i++) {
if (0 == g_strcmp0 (type_name, _text_widgets[i])) {
@@ -221,7 +222,9 @@ get_rc_selector (char const *type_name)
char const *rc_selector;
} _selectors[] = {
/* Apply button's style to its label. */
- { "GtkButton", "widget_class \"*.<GtkButton>.*\"" }
+ { "GtkButton", "widget_class \"*.<GtkButton>.*\"" },
+ /* Apply menu-item's style to its label. */
+ { "GtkMenuItem", "widget_class \"*.<GtkMenuItem>.*\"" }
};
for (unsigned int i = 0; i < G_N_ELEMENTS (_selectors); i++) {