diff options
author | Robert Staudinger <robsta@gnome.org> | 2008-12-02 14:58:12 +0100 |
---|---|---|
committer | Robert Staudinger <robsta@gnome.org> | 2008-12-02 14:58:12 +0100 |
commit | 39d1fcfcf34054cb673192ec26e9e0d3d05466a4 (patch) | |
tree | e9cd062bb149c228c0c8479eb34cfd8d311e675c /ccss/ccss-grammar.c | |
parent | 1394f6abfb99c4b9b2965045adf79bd1a462c244 (diff) |
* HACKING:
* ccss-cairo/ccss-image.c (load_image):
* ccss-doc/ccss-sections.txt:
* ccss-doc/tmpl/stylesheet.sgml:
* ccss/ccss-grammar.c (ccss_grammar_create_stylesheet_from_buffer),
(ccss_grammar_create_stylesheet_from_file):
* ccss/ccss-style-priv.h:
* ccss/ccss-style.c (ccss_style_destroy):
* ccss/ccss-stylesheet-priv.h:
* ccss/ccss-stylesheet.c (ccss_stylesheet_create),
(ccss_stylesheet_add_from_file), (ccss_stylesheet_destroy),
(ccss_stylesheet_reference), (ccss_stylesheet_get_reference_count),
(ccss_stylesheet_query_type), (ccss_stylesheet_query):
* ccss/ccss-stylesheet.h:
* ccss/ccss.sym:
Reference counting for `ccss_stylesheet_t'.
Diffstat (limited to 'ccss/ccss-grammar.c')
-rw-r--r-- | ccss/ccss-grammar.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/ccss/ccss-grammar.c b/ccss/ccss-grammar.c index af75c1e..d40177c 100644 --- a/ccss/ccss-grammar.c +++ b/ccss/ccss-grammar.c @@ -179,11 +179,12 @@ ccss_grammar_create_stylesheet_from_buffer (ccss_grammar_t *self, CCSS_STYLESHEET_AUTHOR, user_data, stylesheet->groups, stylesheet->blocks); - ccss_stylesheet_fix_dangling_selectors (stylesheet); - - // FIXME handle `ret' + if (CR_OK == ret) { + ccss_stylesheet_fix_dangling_selectors (stylesheet); + return stylesheet; + } - return stylesheet; + return NULL; } /** @@ -211,10 +212,11 @@ ccss_grammar_create_stylesheet_from_file (ccss_grammar_t *self, user_data, stylesheet->groups, stylesheet->blocks); - ccss_stylesheet_fix_dangling_selectors (stylesheet); - - // FIXME handle `ret' + if (CR_OK == ret) { + ccss_stylesheet_fix_dangling_selectors (stylesheet); + return stylesheet; + } - return stylesheet; + return NULL; } |