diff options
author | Benjamin Otte <otte@redhat.com> | 2012-01-11 02:43:16 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-11 15:48:54 +0100 |
commit | 5939baa55657d15c214695bbdad33f9827071c2d (patch) | |
tree | fc32b427a589829f9b33113063227adea4eefbce /gtk/gtkcssstyleproperty.c | |
parent | 738f96252ea677e5327cdf09d2d0d09b312c2f02 (diff) | |
download | gtk+-5939baa55657d15c214695bbdad33f9827071c2d.tar.gz |
styleproperty: Make query function take a vfunc
This way we can use different methods to query properties and aren't
bound to a GtkStyleProperties object.
Diffstat (limited to 'gtk/gtkcssstyleproperty.c')
-rw-r--r-- | gtk/gtkcssstyleproperty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c index d547ce31f3..2fb28d9f83 100644 --- a/gtk/gtkcssstyleproperty.c +++ b/gtk/gtkcssstyleproperty.c @@ -117,13 +117,13 @@ _gtk_css_style_property_assign (GtkStyleProperty *property, static void _gtk_css_style_property_query (GtkStyleProperty *property, - GtkStyleProperties *props, - GtkStateFlags state, - GValue *value) + GValue *value, + GtkStyleQueryFunc query_func, + gpointer query_data) { const GValue *val; - val = _gtk_style_properties_peek_property (props, GTK_CSS_STYLE_PROPERTY (property), state); + val = (* query_func) (GTK_CSS_STYLE_PROPERTY (property)->id, query_data); if (val) { /* Somebody make this a vfunc */ |