summaryrefslogtreecommitdiff
path: root/gtk/gtkstylepropertyprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-11 02:43:16 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-11 15:48:54 +0100
commit5939baa55657d15c214695bbdad33f9827071c2d (patch)
treefc32b427a589829f9b33113063227adea4eefbce /gtk/gtkstylepropertyprivate.h
parent738f96252ea677e5327cdf09d2d0d09b312c2f02 (diff)
downloadgtk+-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/gtkstylepropertyprivate.h')
-rw-r--r--gtk/gtkstylepropertyprivate.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h
index 58aaf2abc9..5ba4d85c20 100644
--- a/gtk/gtkstylepropertyprivate.h
+++ b/gtk/gtkstylepropertyprivate.h
@@ -39,6 +39,9 @@ typedef enum {
GTK_STYLE_PROPERTY_INHERIT = (1 << 0)
} GtkStylePropertyFlags;
+typedef const GValue * (* GtkStyleQueryFunc) (guint id,
+ gpointer data);
+
struct _GtkStyleProperty
{
GObject parent;
@@ -56,9 +59,9 @@ struct _GtkStylePropertyClass
GtkStateFlags state,
const GValue *value);
void (* query) (GtkStyleProperty *property,
- GtkStyleProperties *props,
- GtkStateFlags state,
- GValue *value);
+ GValue *value,
+ GtkStyleQueryFunc query_func,
+ gpointer query_data);
gboolean (* parse_value) (GtkStyleProperty * property,
GValue *value,
GtkCssParser *parser,
@@ -82,9 +85,9 @@ gboolean _gtk_style_property_parse_value (GtkStyleProperty *
GType _gtk_style_property_get_value_type(GtkStyleProperty * property);
void _gtk_style_property_query (GtkStyleProperty * property,
- GtkStyleProperties *props,
- GtkStateFlags state,
- GValue *value);
+ GValue *value,
+ GtkStyleQueryFunc query_func,
+ gpointer query_data);
void _gtk_style_property_assign (GtkStyleProperty *property,
GtkStyleProperties *props,
GtkStateFlags state,