[gtk+/gtk-3-18] Fix parsing of font-weight
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-18] Fix parsing of font-weight
- Date: Thu, 28 Jan 2016 03:29:27 +0000 (UTC)
commit d9405627f1c37a7c82d1a0311dfd8a422e77b534
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 20 17:51:47 2015 -0500
Fix parsing of font-weight
The parser was turning a 400 into a 200 and a 700 into a 500.
gtk/gtkcssenumvalue.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssenumvalue.c b/gtk/gtkcssenumvalue.c
index a3555ac..e535128 100644
--- a/gtk/gtkcssenumvalue.c
+++ b/gtk/gtkcssenumvalue.c
@@ -481,9 +481,9 @@ _gtk_css_font_weight_value_try_parse (GtkCssParser *parser)
}
/* special cases go here */
if (_gtk_css_parser_try (parser, "400", TRUE))
- return _gtk_css_value_ref (&font_weight_values[3]);
+ return _gtk_css_value_ref (&font_weight_values[5]);
if (_gtk_css_parser_try (parser, "700", TRUE))
- return _gtk_css_value_ref (&font_weight_values[6]);
+ return _gtk_css_value_ref (&font_weight_values[8]);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]