From d3d7f4fdce94c7401f07d2d2c03359fc270b8554 Mon Sep 17 00:00:00 2001 From: Robert Staudinger Date: Thu, 11 Dec 2008 19:45:44 +0100 Subject: * ccss-doc/ccss-sections.txt: * ccss-doc/tmpl/ccss-unused.sgml: * ccss-doc/tmpl/style.sgml: * ccss-doc/tmpl/stylesheet.sgml: * ccss-gtk/ccss-gtk-stylesheet.c (accumulate_state): * ccss/ccss-style-priv.h: * ccss/ccss-style.h: * ccss/ccss-stylesheet.c (ccss_stylesheet_query_type), (ccss_stylesheet_query): * ccss/ccss-stylesheet.h: * ccss/ccss.sym: * examples/example-1.c (main): * examples/example-2.c (main): * examples/example-3.c (main): * examples/example-4.c (main): * examples/example-5.c (main): Do not expose style constructor, return instance from stylesheet queries. --- ccss-gtk/ccss-gtk-stylesheet.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ccss-gtk') diff --git a/ccss-gtk/ccss-gtk-stylesheet.c b/ccss-gtk/ccss-gtk-stylesheet.c index 87f2efe..4e747d3 100644 --- a/ccss-gtk/ccss-gtk-stylesheet.c +++ b/ccss-gtk/ccss-gtk-stylesheet.c @@ -213,10 +213,8 @@ accumulate_state (ccss_stylesheet_t *stylesheet, node.id = NULL; node.pseudo_class = state_name; - style = ccss_style_create (); - ret = ccss_stylesheet_query (stylesheet, - (ccss_node_t const *) &node, style); - if (!ret) { + style = ccss_stylesheet_query (stylesheet, (ccss_node_t const *) &node); + if (!style) { return false; } -- cgit v1.2.3