diff options
author | Benjamin Otte <otte@redhat.com> | 2012-01-02 17:50:32 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:55 +0100 |
commit | 22a65bcd82a3b2d2bfe3cc4423b83599b5609a52 (patch) | |
tree | 06d393d1ba8cefaba29d1789562fa47b0fd74f41 /gtk/gtkcssstylepropertyprivate.h | |
parent | 232d9226f94a1482149d8ff3f71271f3118f176a (diff) | |
download | gtk+-22a65bcd82a3b2d2bfe3cc4423b83599b5609a52.tar.gz |
styleproperty: Add a compute vfunc
Diffstat (limited to 'gtk/gtkcssstylepropertyprivate.h')
-rw-r--r-- | gtk/gtkcssstylepropertyprivate.h | 6 |
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 |