summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylepropertyprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-02 17:50:32 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-09 18:37:55 +0100
commit22a65bcd82a3b2d2bfe3cc4423b83599b5609a52 (patch)
tree06d393d1ba8cefaba29d1789562fa47b0fd74f41 /gtk/gtkcssstylepropertyprivate.h
parent232d9226f94a1482149d8ff3f71271f3118f176a (diff)
downloadgtk+-22a65bcd82a3b2d2bfe3cc4423b83599b5609a52.tar.gz
styleproperty: Add a compute vfunc
Diffstat (limited to 'gtk/gtkcssstylepropertyprivate.h')
-rw-r--r--gtk/gtkcssstylepropertyprivate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkcssstylepropertyprivate.h b/gtk/gtkcssstylepropertyprivate.h
index c02a766892..a8f6dce38d 100644
--- a/gtk/gtkcssstylepropertyprivate.h
+++ b/gtk/gtkcssstylepropertyprivate.h
@@ -35,6 +35,10 @@ G_BEGIN_DECLS
typedef struct _GtkCssStyleProperty GtkCssStyleProperty;
typedef struct _GtkCssStylePropertyClass GtkCssStylePropertyClass;
+typedef void (* GtkCssStylePropertyComputeFunc)(GtkCssStyleProperty *property,
+ GValue *computed,
+ GtkStyleContext *context,
+ const GValue *specified);
struct _GtkCssStyleProperty
{
GtkStyleProperty parent;
@@ -42,6 +46,8 @@ struct _GtkCssStyleProperty
GValue initial_value;
guint id;
guint inherit :1;
+
+ GtkCssStylePropertyComputeFunc compute_value;
};
struct _GtkCssStylePropertyClass