diff options
author | Benjamin Otte <otte@redhat.com> | 2012-04-03 09:49:37 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:17 +0200 |
commit | b9ebe8c2269d2040d50448fb72f72c344d459625 (patch) | |
tree | 9d883097e33e3927703d73067235b6afc68ea49b /gtk/gtkcssarrayvalueprivate.h | |
parent | 580b5e4a83c2adf2714c6e7f73fa864e92215188 (diff) | |
download | gtk+-b9ebe8c2269d2040d50448fb72f72c344d459625.tar.gz |
cssarrayvalue: Redo parsing arrays
Does 3 things:
1) Introduce a "none" array signleton
2) Get rid of memleaks in error paths
3) Reduce code in parse funcs
Diffstat (limited to 'gtk/gtkcssarrayvalueprivate.h')
-rw-r--r-- | gtk/gtkcssarrayvalueprivate.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkcssarrayvalueprivate.h b/gtk/gtkcssarrayvalueprivate.h index 08b6e4a84d..38443b512c 100644 --- a/gtk/gtkcssarrayvalueprivate.h +++ b/gtk/gtkcssarrayvalueprivate.h @@ -20,12 +20,17 @@ #ifndef __GTK_CSS_ARRAY_VALUE_PRIVATE_H__ #define __GTK_CSS_ARRAY_VALUE_PRIVATE_H__ +#include "gtkcssparserprivate.h" #include "gtkcssvalueprivate.h" G_BEGIN_DECLS -GtkCssValue * _gtk_css_array_value_new (GtkCssValue **values, +GtkCssValue * _gtk_css_array_value_new (GtkCssValue *content); +GtkCssValue * _gtk_css_array_value_new_from_array (GtkCssValue **values, guint n_values); +GtkCssValue * _gtk_css_array_value_parse (GtkCssParser *parser, + GtkCssValue * (* parse_func) (GtkCssParser *parser), + gboolean allow_none); GtkCssValue * _gtk_css_array_value_get_nth (const GtkCssValue *value, guint i); |