diff options
author | Benjamin Otte <otte@redhat.com> | 2012-01-02 19:14:28 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:56 +0100 |
commit | 32c8bbb575b7ef584a610a2ec2b5c1bc683bd4ab (patch) | |
tree | fd7a9a26299283ec9a79b419f4c512455075ab21 | |
parent | a9d1be0bef22fd6c628e97b8ec800eee0ea3dd3b (diff) | |
download | gtk+-32c8bbb575b7ef584a610a2ec2b5c1bc683bd4ab.tar.gz |
styleproperty: Remove context arg from _gtk_style_context_query()
-rw-r--r-- | gtk/gtkborderimage.c | 15 | ||||
-rw-r--r-- | gtk/gtkborderimageprivate.h | 3 | ||||
-rw-r--r-- | gtk/gtkcssshorthandproperty.c | 1 | ||||
-rw-r--r-- | gtk/gtkcssstyleproperty.c | 1 | ||||
-rw-r--r-- | gtk/gtkstyleproperties.c | 2 | ||||
-rw-r--r-- | gtk/gtkstyleproperty.c | 4 | ||||
-rw-r--r-- | gtk/gtkstylepropertyprivate.h | 2 |
7 files changed, 10 insertions, 18 deletions
diff --git a/gtk/gtkborderimage.c b/gtk/gtkborderimage.c index bfd050aef6..47e6ad89e0 100644 --- a/gtk/gtkborderimage.c +++ b/gtk/gtkborderimage.c @@ -195,20 +195,19 @@ _gtk_border_image_unpack (const GValue *value, void _gtk_border_image_pack (GValue *value, GtkStyleProperties *props, - GtkStateFlags state, - GtkStylePropertyContext *context) + GtkStateFlags state) { GtkBorderImage *image; cairo_pattern_t *source; GtkBorder *slice, *width; GtkCssBorderImageRepeat *repeat; - _gtk_style_properties_get (props, state, context, - "border-image-source", &source, - "border-image-slice", &slice, - "border-image-repeat", &repeat, - "border-image-width", &width, - NULL); + gtk_style_properties_get (props, state, + "border-image-source", &source, + "border-image-slice", &slice, + "border-image-repeat", &repeat, + "border-image-width", &width, + NULL); if (source == NULL) { diff --git a/gtk/gtkborderimageprivate.h b/gtk/gtkborderimageprivate.h index ee4975f263..e228f0d4a2 100644 --- a/gtk/gtkborderimageprivate.h +++ b/gtk/gtkborderimageprivate.h @@ -64,8 +64,7 @@ GParameter * _gtk_border_image_unpack (const GValue *valu guint *n_params); void _gtk_border_image_pack (GValue *value, GtkStyleProperties *props, - GtkStateFlags state, - GtkStylePropertyContext *context); + GtkStateFlags state); G_END_DECLS diff --git a/gtk/gtkcssshorthandproperty.c b/gtk/gtkcssshorthandproperty.c index d5a9005944..7352788122 100644 --- a/gtk/gtkcssshorthandproperty.c +++ b/gtk/gtkcssshorthandproperty.c @@ -88,7 +88,6 @@ static void _gtk_css_shorthand_property_query (GtkStyleProperty *property, GtkStyleProperties *props, GtkStateFlags state, - GtkStylePropertyContext *context, GValue *value) { property->pack_func (value, props, state); diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c index 03418ddbd6..4791857243 100644 --- a/gtk/gtkcssstyleproperty.c +++ b/gtk/gtkcssstyleproperty.c @@ -125,7 +125,6 @@ static void _gtk_css_style_property_query (GtkStyleProperty *property, GtkStyleProperties *props, GtkStateFlags state, - GtkStylePropertyContext *context, GValue *value) { const GValue *val; diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c index 781ac44c04..c7e36aa024 100644 --- a/gtk/gtkstyleproperties.c +++ b/gtk/gtkstyleproperties.c @@ -653,7 +653,7 @@ _gtk_style_properties_get_property (GtkStyleProperties *props, return FALSE; } - _gtk_style_property_query (node, props, state, context, value); + _gtk_style_property_query (node, props, state, value); return TRUE; } diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index 2a53cfd00e..a8197842d7 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -211,21 +211,19 @@ void _gtk_style_property_query (GtkStyleProperty *property, GtkStyleProperties *props, GtkStateFlags state, - GtkStylePropertyContext *context, GValue *value) { GtkStylePropertyClass *klass; g_return_if_fail (property != NULL); g_return_if_fail (GTK_IS_STYLE_PROPERTIES (props)); - g_return_if_fail (context != NULL); g_return_if_fail (value != NULL); klass = GTK_STYLE_PROPERTY_GET_CLASS (property); g_value_init (value, property->value_type); - klass->query (property, props, state, context, value); + klass->query (property, props, state, value); } static void diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h index 3d72facc80..7e97b70fb0 100644 --- a/gtk/gtkstylepropertyprivate.h +++ b/gtk/gtkstylepropertyprivate.h @@ -67,7 +67,6 @@ struct _GtkStylePropertyClass void (* query) (GtkStyleProperty *property, GtkStyleProperties *props, GtkStateFlags state, - GtkStylePropertyContext *context, GValue *value); gboolean (* parse_value) (GtkStyleProperty * property, GValue *value, @@ -92,7 +91,6 @@ GType _gtk_style_property_get_value_type(GtkStyleProperty * void _gtk_style_property_query (GtkStyleProperty * property, GtkStyleProperties *props, GtkStateFlags state, - GtkStylePropertyContext *context, GValue *value); void _gtk_style_property_assign (GtkStyleProperty *property, GtkStyleProperties *props, |