summaryrefslogtreecommitdiff
path: root/ccss-gtk
diff options
context:
space:
mode:
authorRobert Staudinger <robsta@gnome.org>2008-12-11 19:45:44 +0100
committerRobert Staudinger <robsta@gnome.org>2008-12-11 19:45:44 +0100
commitd3d7f4fdce94c7401f07d2d2c03359fc270b8554 (patch)
tree332bcfcd479d48b72de0d773057fb78cce1f3488 /ccss-gtk
parent119d1b0fce29daba91bcd1abd828660906caaa81 (diff)
* 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.
Diffstat (limited to 'ccss-gtk')
-rw-r--r--ccss-gtk/ccss-gtk-stylesheet.c6
1 files changed, 2 insertions, 4 deletions
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;
}