[gnome-shell] st_theme_node_get_color: fix inheritance
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st_theme_node_get_color: fix inheritance
- Date: Thu, 21 Oct 2010 14:49:25 +0000 (UTC)
commit 33e955770c7194eb603c40b44d242225dcd2d302
Author: Dan Winship <danw gnome org>
Date: Tue Oct 19 13:59:49 2010 -0400
st_theme_node_get_color: fix inheritance
This wasn't actually recursing if you passed the "inherit" flag
https://bugzilla.gnome.org/show_bug.cgi?id=632590
src/st/st-theme-node.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c
index b709120..5561162 100644
--- a/src/st/st-theme-node.c
+++ b/src/st/st-theme-node.c
@@ -542,6 +542,9 @@ st_theme_node_get_color (StThemeNode *node,
}
}
+ if (inherit && node->parent_node)
+ return st_theme_node_get_color (node->parent_node, property_name, inherit, color);
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]