summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-09-18 18:10:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-09-18 18:10:08 -0400
commitf87dc24867dd54b28d5368925d11203baefd5fb8 (patch)
tree33a914c97851f2d3237ef605531b344ba717b0d8
parent92398bb1bbae85ead39e9579b09f86649df7aeb1 (diff)
downloadgtk+-f87dc24867dd54b28d5368925d11203baefd5fb8.tar.gz
Fix a typo
The property is called font-variant-alternates, not -alternatives. Correct this everywhere.
-rw-r--r--gtk/gtkcssshorthandpropertyimpl.c2
-rw-r--r--gtk/gtkcssstyle.c8
-rw-r--r--gtk/gtkcssstylepropertyimpl.c10
-rw-r--r--gtk/gtkcsstypesprivate.h2
4 files changed, 11 insertions, 11 deletions
diff --git a/gtk/gtkcssshorthandpropertyimpl.c b/gtk/gtkcssshorthandpropertyimpl.c
index c2081f48cb..40b96c6a1d 100644
--- a/gtk/gtkcssshorthandpropertyimpl.c
+++ b/gtk/gtkcssshorthandpropertyimpl.c
@@ -1272,7 +1272,7 @@ _gtk_css_shorthand_property_init_properties (void)
const char *animation_subproperties[] = { "animation-name", "animation-iteration-count", "animation-duration", "animation-delay",
"animation-timing-function", "animation-direction", "animation-fill-mode", NULL };
const char *text_decoration_subproperties[] = { "text-decoration-line", "text-decoration-style", "text-decoration-color", NULL };
- const char *font_variant_subproperties[] = { "font-variant-ligatures", "font-variant-position", "font-variant-caps", "font-variant-numeric", "font-variant-alternatives", "font-variant-east-asian", NULL };
+ const char *font_variant_subproperties[] = { "font-variant-ligatures", "font-variant-position", "font-variant-caps", "font-variant-numeric", "font-variant-alternates", "font-variant-east-asian", NULL };
const char **all_subproperties;
diff --git a/gtk/gtkcssstyle.c b/gtk/gtkcssstyle.c
index f6eaa35764..245d48a428 100644
--- a/gtk/gtkcssstyle.c
+++ b/gtk/gtkcssstyle.c
@@ -230,7 +230,7 @@ gtk_css_style_get_pango_attributes (GtkCssStyle *style)
GtkCssValue *position;
GtkCssValue *caps;
GtkCssValue *numeric;
- GtkCssValue *alternatives;
+ GtkCssValue *alternates;
GtkCssValue *east_asian;
GString *s;
int i;
@@ -371,10 +371,10 @@ gtk_css_style_get_pango_attributes (GtkCssStyle *style)
g_string_append (s, "zero 1");
}
- alternatives = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATIVES);
- for (i = 0; i < _gtk_css_array_value_get_n_values (alternatives); i++)
+ alternates = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATES);
+ for (i = 0; i < _gtk_css_array_value_get_n_values (alternates); i++)
{
- GtkCssValue *value = _gtk_css_array_value_get_nth (alternatives, i);
+ GtkCssValue *value = _gtk_css_array_value_get_nth (alternates, i);
if (s->len > 0) g_string_append (s, ", ");
if (strcmp (_gtk_css_ident_value_get (value), "historical-forms") == 0)
g_string_append (s, "hist 1");
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index adc7ea35ef..c791219506 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -716,8 +716,8 @@ parse_font_variant_numeric (GtkCssStyleProperty *property,
}
static GtkCssValue *
-parse_font_variant_alternatives (GtkCssStyleProperty *property,
- GtkCssParser *parser)
+parse_font_variant_alternates (GtkCssStyleProperty *property,
+ GtkCssParser *parser)
{
GtkCssValue *value = NULL;
@@ -1307,12 +1307,12 @@ _gtk_css_style_property_init_properties (void)
parse_font_variant_numeric,
NULL,
_gtk_css_array_value_new (_gtk_css_ident_value_new ("normal")));
- gtk_css_style_property_register ("font-variant-alternatives",
- GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATIVES,
+ gtk_css_style_property_register ("font-variant-alternates",
+ GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATES,
G_TYPE_NONE,
0,
GTK_CSS_AFFECTS_TEXT | GTK_CSS_AFFECTS_TEXT_ATTRS,
- parse_font_variant_alternatives,
+ parse_font_variant_alternates,
NULL,
_gtk_css_array_value_new (_gtk_css_ident_value_new ("normal")));
gtk_css_style_property_register ("font-variant-east-asian",
diff --git a/gtk/gtkcsstypesprivate.h b/gtk/gtkcsstypesprivate.h
index a7fe8c9d7d..a56c345e32 100644
--- a/gtk/gtkcsstypesprivate.h
+++ b/gtk/gtkcsstypesprivate.h
@@ -167,7 +167,7 @@ enum { /*< skip >*/
GTK_CSS_PROPERTY_FONT_VARIANT_POSITION,
GTK_CSS_PROPERTY_FONT_VARIANT_CAPS,
GTK_CSS_PROPERTY_FONT_VARIANT_NUMERIC,
- GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATIVES,
+ GTK_CSS_PROPERTY_FONT_VARIANT_ALTERNATES,
GTK_CSS_PROPERTY_FONT_VARIANT_EAST_ASIAN,
GTK_CSS_PROPERTY_TEXT_SHADOW,
GTK_CSS_PROPERTY_BOX_SHADOW,