diff options
author | Benjamin Otte <otte@redhat.com> | 2011-04-14 04:47:18 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-05-18 22:17:55 +0200 |
commit | 7ccb9db79e702e507dedf211ed25787be2f32721 (patch) | |
tree | ea1f4e802eeeb04c74bbbc08f82705f12db1586a /gtk/gtkcssprovider.h | |
parent | 058bbb2aec58a8c4c5184d63d7eddfa52ab91289 (diff) | |
download | gtk+-7ccb9db79e702e507dedf211ed25787be2f32721.tar.gz |
css: Rewrite the parser
Instead of relying on GScanner and its idea of syntax, code up a parser
that obeys the CSS spec.
This also has the great side effect of reporting correct line numbers
and positions.
Also included is a reorganization of the returned error values. Instead
of error values describing what type of syntax error was returned, the
code just returns SYNTAX_ERROR. Other messages exist for when actual
values don't work or when errors shouldn't be fatal due to backwards
compatibility.
Diffstat (limited to 'gtk/gtkcssprovider.h')
-rw-r--r-- | gtk/gtkcssprovider.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk/gtkcssprovider.h b/gtk/gtkcssprovider.h index 65292dfce1..b49640c8c2 100644 --- a/gtk/gtkcssprovider.h +++ b/gtk/gtkcssprovider.h @@ -37,15 +37,9 @@ typedef enum { GTK_CSS_PROVIDER_ERROR_FAILED, GTK_CSS_PROVIDER_ERROR_SYNTAX, - GTK_CSS_PROVIDER_ERROR_PROPERTY_NAME, - GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE, - GTK_CSS_PROVIDER_ERROR_SELECTOR, - GTK_CSS_PROVIDER_ERROR_COMBINATOR, - GTK_CSS_PROVIDER_ERROR_CLASS, - GTK_CSS_PROVIDER_ERROR_PSEUDO_CLASS, - GTK_CSS_PROVIDER_ERROR_AT_RULE, GTK_CSS_PROVIDER_ERROR_IMPORT, - GTK_CSS_PROVIDER_ERROR_DEFINE_COLOR + GTK_CSS_PROVIDER_ERROR_NAME, + GTK_CSS_PROVIDER_ERROR_DEPRECATED } GtkCssProviderError; GQuark gtk_css_provider_error_quark (void); |