summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRobert Staudinger <robertx.staudinger@intel.com>2009-06-02 00:36:37 +0200
committerRobert Staudinger <robertx.staudinger@intel.com>2009-06-02 00:36:37 +0200
commitbf6c922a99ca84d6e3e18ea95b2f6df73d9b4006 (patch)
tree65ade6ffa1979183cd66a94a0b96c97da133c229 /examples
parentff520a403c824be3dd96e3bab7e9a7dfa5b898d2 (diff)
[node] Cache values queried from the node implementation.
Node name, class, etc. are kept in the node instance to avoid having to query for them repeatedly.
Diffstat (limited to 'examples')
-rw-r--r--examples/example-2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-2.c b/examples/example-2.c
index 4673269..716ce60 100644
--- a/examples/example-2.c
+++ b/examples/example-2.c
@@ -88,7 +88,7 @@ main (int argc,
node.instance = 0xdeadbeef;
node.inline_css = "background-color: yellow";
- style = ccss_stylesheet_query (stylesheet, (ccss_node_t const *) &node);
+ style = ccss_stylesheet_query (stylesheet, &node.parent);
g_assert (style);
#ifdef CCSS_DEBUG