diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-03-06 14:16:32 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-03-08 11:03:57 +0100 |
commit | 7603e6e47395b8e1d66522a22255637fa10d3a47 (patch) | |
tree | 0f5e58f31234cea8f6b6503e2b85b646dc603b29 /gtk/gtkcssstylefuncsprivate.h | |
parent | 0ece7a5de3eae5f4d7e4d1623d191a0a0628e652 (diff) | |
download | gtk+-7603e6e47395b8e1d66522a22255637fa10d3a47.tar.gz |
css: Use GtkCssValues instead of GValue in the css machinery
Also, in places where we're computing a new CssValue based on an
old one, make sure that if nothing changes we're returning a reference
to the old one, rather than creating a new identical instance.
Diffstat (limited to 'gtk/gtkcssstylefuncsprivate.h')
-rw-r--r-- | gtk/gtkcssstylefuncsprivate.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkcssstylefuncsprivate.h b/gtk/gtkcssstylefuncsprivate.h index 2728aa98a1..647a950456 100644 --- a/gtk/gtkcssstylefuncsprivate.h +++ b/gtk/gtkcssstylefuncsprivate.h @@ -20,6 +20,7 @@ #include "gtkcssparserprivate.h" #include "gtkstylecontext.h" +#include "gtkcssvalueprivate.h" G_BEGIN_DECLS @@ -28,9 +29,9 @@ gboolean _gtk_css_style_parse_value (GValue GFile *base); void _gtk_css_style_print_value (const GValue *value, GString *string); -void _gtk_css_style_compute_value (GValue *computed, - GtkStyleContext *context, - const GValue *specified); +GtkCssValue * _gtk_css_style_compute_value (GtkStyleContext *context, + GType target_type, + GtkCssValue *specified); G_END_DECLS |