summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylepropertyprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-02 18:05:06 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-09 18:37:55 +0100
commitc3d337312a65eb6dfa6c040c052a75a74227413d (patch)
tree51c6a1353f76cc349b1fb5f000afbbffb62b0053 /gtk/gtkcssstylepropertyprivate.h
parent22a65bcd82a3b2d2bfe3cc4423b83599b5609a52 (diff)
downloadgtk+-c3d337312a65eb6dfa6c040c052a75a74227413d.tar.gz
styleproperty: Move parse/print vfuncs to GtkCssStyleProperty
Diffstat (limited to 'gtk/gtkcssstylepropertyprivate.h')
-rw-r--r--gtk/gtkcssstylepropertyprivate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkcssstylepropertyprivate.h b/gtk/gtkcssstylepropertyprivate.h
index a8f6dce38d..ca86bc8db3 100644
--- a/gtk/gtkcssstylepropertyprivate.h
+++ b/gtk/gtkcssstylepropertyprivate.h
@@ -35,6 +35,13 @@ G_BEGIN_DECLS
typedef struct _GtkCssStyleProperty GtkCssStyleProperty;
typedef struct _GtkCssStylePropertyClass GtkCssStylePropertyClass;
+typedef gboolean (* GtkCssStylePropertyParseFunc) (GtkCssStyleProperty *property,
+ GValue *value,
+ GtkCssParser *parser,
+ GFile *base);
+typedef void (* GtkCssStylePropertyPrintFunc) (GtkCssStyleProperty *property,
+ const GValue *value,
+ GString *string);
typedef void (* GtkCssStylePropertyComputeFunc)(GtkCssStyleProperty *property,
GValue *computed,
GtkStyleContext *context,
@@ -47,6 +54,8 @@ struct _GtkCssStyleProperty
guint id;
guint inherit :1;
+ GtkCssStylePropertyParseFunc parse_value;
+ GtkCssStylePropertyPrintFunc print_value;
GtkCssStylePropertyComputeFunc compute_value;
};