]> Pileus Git - ~andy/gtk/commitdiff
Rename parse_border
authorPaolo Borelli <pborelli@gnome.org>
Wed, 4 Jan 2012 18:18:21 +0000 (19:18 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:59 +0000 (18:37 +0100)
For consistency we will use this name for the boder shorthand.

gtk/gtkcssshorthandpropertyimpl.c

index 5d93dfd32e428cb5888b406f343be8b1dbe366fa..3a8c60fe5e436b1ee66b0167c58298b3ae93a5f5 100644 (file)
@@ -47,10 +47,10 @@ value_is_done_parsing (GtkCssParser *parser)
 }
 
 static gboolean
-parse_border (GtkCssShorthandProperty *shorthand,
-              GValue                  *values,
-              GtkCssParser            *parser,
-              GFile                   *base)
+parse_border_width (GtkCssShorthandProperty *shorthand,
+                    GValue                  *values,
+                    GtkCssParser            *parser,
+                    GFile                   *base)
 {
   GValue temp = G_VALUE_INIT;
   GtkBorder *border;
@@ -77,7 +77,7 @@ parse_border (GtkCssShorthandProperty *shorthand,
 
   return TRUE;
 }
-                    
+
 static gboolean 
 parse_border_radius (GtkCssShorthandProperty *shorthand,
                      GValue                  *values,
@@ -809,19 +809,19 @@ _gtk_css_shorthand_property_init_properties (void)
   _gtk_css_shorthand_property_register   ("margin",
                                           GTK_TYPE_BORDER,
                                           margin_subproperties,
-                                          parse_border,
+                                          parse_border_width,
                                           unpack_margin,
                                           pack_margin);
   _gtk_css_shorthand_property_register   ("padding",
                                           GTK_TYPE_BORDER,
                                           padding_subproperties,
-                                          parse_border,
+                                          parse_border_width,
                                           unpack_padding,
                                           pack_padding);
   _gtk_css_shorthand_property_register   ("border-width",
                                           GTK_TYPE_BORDER,
                                           border_width_subproperties,
-                                          parse_border,
+                                          parse_border_width,
                                           unpack_border_width,
                                           pack_border_width);
   _gtk_css_shorthand_property_register   ("border-radius",