[gtk+] styleproperty: Remove context arg from _gtk_style_context_query()



commit 32c8bbb575b7ef584a610a2ec2b5c1bc683bd4ab
Author: Benjamin Otte <otte redhat com>
Date:   Mon Jan 2 19:14:28 2012 +0100

    styleproperty: Remove context arg from _gtk_style_context_query()

 gtk/gtkborderimage.c          |   15 +++++++--------
 gtk/gtkborderimageprivate.h   |    3 +--
 gtk/gtkcssshorthandproperty.c |    1 -
 gtk/gtkcssstyleproperty.c     |    1 -
 gtk/gtkstyleproperties.c      |    2 +-
 gtk/gtkstyleproperty.c        |    4 +---
 gtk/gtkstylepropertyprivate.h |    2 --
 7 files changed, 10 insertions(+), 18 deletions(-)
---
diff --git a/gtk/gtkborderimage.c b/gtk/gtkborderimage.c
index bfd050a..47e6ad8 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 ee4975f..e228f0d 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 d5a9005..7352788 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 03418dd..4791857 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 781ac44..c7e36aa 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 2a53cfd..a819784 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 3d72fac..7e97b70 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]