summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshorthandpropertyprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-10 19:02:42 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-11 15:48:53 +0100
commite603992ac7fb7c96ac878bc36a40c82bcaba6aeb (patch)
tree17c789ac96115c70dd722313ab9e020982f9b46e /gtk/gtkcssshorthandpropertyprivate.h
parentaa98aca45f54df4dc59bbf542be0c712b24284be (diff)
downloadgtk+-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.h10
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