summaryrefslogtreecommitdiff
path: root/gtk/gtkcssparser.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-15 17:51:58 +0100
committerBenjamin Otte <otte@redhat.com>2012-02-02 03:14:00 +0100
commit0c140daff284c19c8ad01cf011974c33f48e767b (patch)
tree90c4b953af2355c2878764e9a5af9ab7691a65d5 /gtk/gtkcssparser.c
parenta63ff724060c0a9ff9299d294e17b59aab46f81f (diff)
downloadgtk+-0c140daff284c19c8ad01cf011974c33f48e767b.tar.gz
css: Implement support for angles
Diffstat (limited to 'gtk/gtkcssparser.c')
-rw-r--r--gtk/gtkcssparser.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
index 6c362533dd..67637dedb2 100644
--- a/gtk/gtkcssparser.c
+++ b/gtk/gtkcssparser.c
@@ -546,14 +546,18 @@ _gtk_css_parser_read_number (GtkCssParser *parser,
GtkCssUnit unit;
GtkCssNumberParseFlags required_flags;
} units[] = {
- { "px", GTK_CSS_PX, GTK_CSS_PARSE_LENGTH },
- { "pt", GTK_CSS_PT, GTK_CSS_PARSE_LENGTH },
- { "em", GTK_CSS_EM, GTK_CSS_PARSE_LENGTH },
- { "ex", GTK_CSS_EX, GTK_CSS_PARSE_LENGTH },
- { "pc", GTK_CSS_PC, GTK_CSS_PARSE_LENGTH },
- { "in", GTK_CSS_IN, GTK_CSS_PARSE_LENGTH },
- { "cm", GTK_CSS_CM, GTK_CSS_PARSE_LENGTH },
- { "mm", GTK_CSS_MM, GTK_CSS_PARSE_LENGTH }
+ { "px", GTK_CSS_PX, GTK_CSS_PARSE_LENGTH },
+ { "pt", GTK_CSS_PT, GTK_CSS_PARSE_LENGTH },
+ { "em", GTK_CSS_EM, GTK_CSS_PARSE_LENGTH },
+ { "ex", GTK_CSS_EX, GTK_CSS_PARSE_LENGTH },
+ { "pc", GTK_CSS_PC, GTK_CSS_PARSE_LENGTH },
+ { "in", GTK_CSS_IN, GTK_CSS_PARSE_LENGTH },
+ { "cm", GTK_CSS_CM, GTK_CSS_PARSE_LENGTH },
+ { "mm", GTK_CSS_MM, GTK_CSS_PARSE_LENGTH },
+ { "rad", GTK_CSS_RAD, GTK_CSS_PARSE_ANGLE },
+ { "deg", GTK_CSS_DEG, GTK_CSS_PARSE_ANGLE },
+ { "grad", GTK_CSS_GRAD, GTK_CSS_PARSE_ANGLE },
+ { "turn", GTK_CSS_TURN, GTK_CSS_PARSE_ANGLE }
};
char *end, *unit;