shorthand: Move pack funcs from base class

Also make the vfuncs take the shorthand as an argument.
This commit is contained in:
Benjamin Otte
2012-01-10 19:02:42 +01:00
parent aa98aca45f
commit e603992ac7
4 changed files with 70 additions and 52 deletions

View File

@ -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