summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnumbervalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2016-02-15 00:49:29 +0100
committerBenjamin Otte <otte@gnome.org>2016-02-15 04:41:12 +0100
commitf425b5549c49146ba3b751672e79f70d5e5572d7 (patch)
treef220558aef5fd83194c2ee8e30ecf1fbaa399630 /gtk/gtkcssnumbervalue.c
parentb43844f9f91d4c24ef1300c2a088050ef960bc6b (diff)
downloadgtk+-f425b5549c49146ba3b751672e79f70d5e5572d7.tar.gz
win32: Add support for -gtk-win32-part-width/height to CSS
It's unused by now, but I want it for min-width of checks/radios.
Diffstat (limited to 'gtk/gtkcssnumbervalue.c')
-rw-r--r--gtk/gtkcssnumbervalue.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkcssnumbervalue.c b/gtk/gtkcssnumbervalue.c
index cca1e8513d..e8256c0cf7 100644
--- a/gtk/gtkcssnumbervalue.c
+++ b/gtk/gtkcssnumbervalue.c
@@ -131,7 +131,9 @@ gtk_css_number_value_can_parse (GtkCssParser *parser)
{
return _gtk_css_parser_has_number (parser)
|| _gtk_css_parser_has_prefix (parser, "calc")
- || _gtk_css_parser_has_prefix (parser, "-gtk-win32-size");
+ || _gtk_css_parser_has_prefix (parser, "-gtk-win32-size")
+ || _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-width")
+ || _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-height");
}
GtkCssValue *
@@ -140,7 +142,9 @@ _gtk_css_number_value_parse (GtkCssParser *parser,
{
if (_gtk_css_parser_has_prefix (parser, "calc"))
return gtk_css_calc_value_parse (parser, flags);
- if (_gtk_css_parser_has_prefix (parser, "-gtk-win32-size"))
+ if (_gtk_css_parser_has_prefix (parser, "-gtk-win32-size") ||
+ _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-width") ||
+ _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-height"))
return gtk_css_win32_size_value_parse (parser, flags);
return gtk_css_dimension_value_parse (parser, flags);