diff options
author | Benjamin Otte <otte@redhat.com> | 2012-01-10 19:02:42 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-11 15:48:53 +0100 |
commit | e603992ac7fb7c96ac878bc36a40c82bcaba6aeb (patch) | |
tree | 17c789ac96115c70dd722313ab9e020982f9b46e /gtk/gtkcssshorthandpropertyprivate.h | |
parent | aa98aca45f54df4dc59bbf542be0c712b24284be (diff) | |
download | gtk+-e603992ac7fb7c96ac878bc36a40c82bcaba6aeb.tar.gz |
shorthand: Move pack funcs from base class
Also make the vfuncs take the shorthand as an argument.
Diffstat (limited to 'gtk/gtkcssshorthandpropertyprivate.h')
-rw-r--r-- | gtk/gtkcssshorthandpropertyprivate.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkcssshorthandpropertyprivate.h b/gtk/gtkcssshorthandpropertyprivate.h index c07d36c0b6..a4d5b2bce3 100644 --- a/gtk/gtkcssshorthandpropertyprivate.h +++ b/gtk/gtkcssshorthandpropertyprivate.h @@ -43,6 +43,14 @@ typedef gboolean (* GtkCssShorthandPropertyParseFunc) (GtkCssS GValue *values, GtkCssParser *parser, GFile *base); +typedef GParameter * (* GtkCssShorthandPropertyAssignFunc) (GtkCssShorthandProperty *shorthand, + const GValue *value, + guint *n_params); +typedef void (* GtkCssShorthandPropertyQueryFunc) (GtkCssShorthandProperty *shorthand, + GValue *value, + GtkStyleProperties *props, + GtkStateFlags state); + struct _GtkCssShorthandProperty { GtkStyleProperty parent; @@ -50,6 +58,8 @@ struct _GtkCssShorthandProperty GPtrArray *subproperties; GtkCssShorthandPropertyParseFunc parse; + GtkCssShorthandPropertyAssignFunc assign; + GtkCssShorthandPropertyQueryFunc query; }; struct _GtkCssShorthandPropertyClass |