]> Pileus Git - ~andy/gtk/commitdiff
cssshorthand: Don't pass base file anymore
authorBenjamin Otte <otte@redhat.com>
Wed, 18 Apr 2012 19:48:05 +0000 (21:48 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 11 May 2012 14:42:12 +0000 (16:42 +0200)
It's part of the parser now.

gtk/gtkcssshorthandproperty.c
gtk/gtkcssshorthandpropertyimpl.c
gtk/gtkcssshorthandpropertyprivate.h

index f63d3a51de3c232d38042e6004bba1dbc45e2700..96e8c63463e81bb51f865cf088a9dc01545716ca 100644 (file)
@@ -119,7 +119,7 @@ gtk_css_shorthand_property_parse_value (GtkStyleProperty *property,
           data[i] = _gtk_css_inherit_value_new ();
         }
     }
-  else if (!shorthand->parse (shorthand, data, parser, base))
+  else if (!shorthand->parse (shorthand, data, parser))
     {
       for (i = 0; i < shorthand->subproperties->len; i++)
         {
index 1c3ad623aa9d1276a041db2f5f616bae2c8c5421..fdcb2de6543e5641c352ed56980e641847bed80c 100644 (file)
@@ -91,8 +91,7 @@ parse_four_numbers (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_margin (GtkCssShorthandProperty  *shorthand,
               GtkCssValue             **values,
-              GtkCssParser             *parser,
-              GFile                    *base)
+              GtkCssParser             *parser)
 {
   return parse_four_numbers (shorthand,
                              values,
@@ -104,8 +103,7 @@ parse_margin (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_padding (GtkCssShorthandProperty  *shorthand,
                GtkCssValue             **values,
-               GtkCssParser             *parser,
-               GFile                    *base)
+               GtkCssParser             *parser)
 {
   return parse_four_numbers (shorthand,
                              values,
@@ -118,8 +116,7 @@ parse_padding (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_border_width (GtkCssShorthandProperty  *shorthand,
                     GtkCssValue             **values,
-                    GtkCssParser             *parser,
-                    GFile                    *base)
+                    GtkCssParser             *parser)
 {
   return parse_four_numbers (shorthand,
                              values,
@@ -132,8 +129,7 @@ parse_border_width (GtkCssShorthandProperty  *shorthand,
 static gboolean 
 parse_border_radius (GtkCssShorthandProperty  *shorthand,
                      GtkCssValue             **values,
-                     GtkCssParser             *parser,
-                     GFile                    *base)
+                     GtkCssParser             *parser)
 {
   GtkCssValue *x[4] = { NULL, }, *y[4] = { NULL, };
   guint i;
@@ -213,8 +209,7 @@ fail:
 static gboolean 
 parse_border_color (GtkCssShorthandProperty  *shorthand,
                     GtkCssValue             **values,
-                    GtkCssParser             *parser,
-                    GFile                    *base)
+                    GtkCssParser             *parser)
 {
   guint i;
 
@@ -239,8 +234,7 @@ parse_border_color (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_border_style (GtkCssShorthandProperty  *shorthand,
                     GtkCssValue             **values,
-                    GtkCssParser             *parser,
-                    GFile                    *base)
+                    GtkCssParser             *parser)
 {
   guint i;
 
@@ -266,8 +260,7 @@ parse_border_style (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_border_image (GtkCssShorthandProperty  *shorthand,
                     GtkCssValue             **values,
-                    GtkCssParser             *parser,
-                    GFile                    *base)
+                    GtkCssParser             *parser)
 {
   do
     {
@@ -333,8 +326,7 @@ parse_border_image (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_border_side (GtkCssShorthandProperty  *shorthand,
                    GtkCssValue             **values,
-                   GtkCssParser             *parser,
-                   GFile                    *base)
+                   GtkCssParser             *parser)
 {
   do
   {
@@ -368,8 +360,7 @@ parse_border_side (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_border (GtkCssShorthandProperty  *shorthand,
               GtkCssValue             **values,
-              GtkCssParser             *parser,
-              GFile                    *base)
+              GtkCssParser             *parser)
 {
   do
   {
@@ -422,8 +413,7 @@ parse_border (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_font (GtkCssShorthandProperty  *shorthand,
             GtkCssValue             **values,
-            GtkCssParser             *parser,
-            GFile                    *base)
+            GtkCssParser             *parser)
 {
   PangoFontDescription *desc;
   guint mask;
@@ -467,8 +457,7 @@ parse_font (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_background (GtkCssShorthandProperty  *shorthand,
                   GtkCssValue             **values,
-                  GtkCssParser             *parser,
-                  GFile                    *base)
+                  GtkCssParser             *parser)
 {
   do
     {
@@ -526,8 +515,7 @@ parse_background (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_one_transition (GtkCssShorthandProperty  *shorthand,
                       GtkCssValue             **values,
-                      GtkCssParser             *parser,
-                      GFile                    *base)
+                      GtkCssParser             *parser)
 {
   do
     {
@@ -579,8 +567,7 @@ parse_one_transition (GtkCssShorthandProperty  *shorthand,
 static gboolean
 parse_transition (GtkCssShorthandProperty  *shorthand,
                   GtkCssValue             **values,
-                  GtkCssParser             *parser,
-                  GFile                    *base)
+                  GtkCssParser             *parser)
 {
   GtkCssValue *step_values[4];
   GPtrArray *arrays[4];
@@ -593,7 +580,7 @@ parse_transition (GtkCssShorthandProperty  *shorthand,
     }
 
   do {
-    if (!parse_one_transition (shorthand, step_values, parser, base))
+    if (!parse_one_transition (shorthand, step_values, parser))
       {
         for (i = 0; i < 4; i++)
           {
index 95ec48cef2a998388bb6293e8f1bfed735f8ba61..d5483703140973f5a907f6fda0702d8103b6d0bb 100644 (file)
@@ -40,8 +40,7 @@ typedef struct _GtkCssShorthandPropertyClass      GtkCssShorthandPropertyClass;
 
 typedef gboolean              (* GtkCssShorthandPropertyParseFunc)      (GtkCssShorthandProperty *shorthand,
                                                                          GtkCssValue            **values,
-                                                                         GtkCssParser            *parser,
-                                                                         GFile                   *base);
+                                                                         GtkCssParser            *parser);
 typedef void                  (* GtkCssShorthandPropertyAssignFunc)     (GtkCssShorthandProperty *shorthand,
                                                                          GtkStyleProperties      *props,
                                                                          GtkStateFlags            state,