summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshorthandpropertyprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-02 02:05:05 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-09 18:37:53 +0100
commit01548bfcbe71cb2b211fd5878c2dc0c3579c277e (patch)
treef30bc12cef0c5347cf6de1f6a9bc277936f84a1d /gtk/gtkcssshorthandpropertyprivate.h
parente876d9fed586d6486894b3c6652a07a47557f20e (diff)
downloadgtk+-01548bfcbe71cb2b211fd5878c2dc0c3579c277e.tar.gz
shorthand: Redo shorthand value parsing
The new approach does not need unpack functions anymore.
Diffstat (limited to 'gtk/gtkcssshorthandpropertyprivate.h')
-rw-r--r--gtk/gtkcssshorthandpropertyprivate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkcssshorthandpropertyprivate.h b/gtk/gtkcssshorthandpropertyprivate.h
index c53bed7082..c07d36c0b6 100644
--- a/gtk/gtkcssshorthandpropertyprivate.h
+++ b/gtk/gtkcssshorthandpropertyprivate.h
@@ -39,11 +39,17 @@ G_BEGIN_DECLS
typedef struct _GtkCssShorthandProperty GtkCssShorthandProperty;
typedef struct _GtkCssShorthandPropertyClass GtkCssShorthandPropertyClass;
+typedef gboolean (* GtkCssShorthandPropertyParseFunc) (GtkCssShorthandProperty *shorthand,
+ GValue *values,
+ GtkCssParser *parser,
+ GFile *base);
struct _GtkCssShorthandProperty
{
GtkStyleProperty parent;
GPtrArray *subproperties;
+
+ GtkCssShorthandPropertyParseFunc parse;
};
struct _GtkCssShorthandPropertyClass