[gnome-shell] st_theme_node_get_color: fix inheritance



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]