summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnumbervalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2016-02-15 06:50:22 +0100
committerBenjamin Otte <otte@redhat.com>2016-02-17 04:49:26 +0100
commit67b893c5f8be66c316189ed73692093accfb1e9a (patch)
tree2ab59660a9753ebc3e40e8d07bb6780826a310e1 /gtk/gtkcssnumbervalue.c
parenta3998bce9d444657a70c8910075ebbab15702bcf (diff)
downloadgtk+-67b893c5f8be66c316189ed73692093accfb1e9a.tar.gz
win32 theme: Add a way to query border of theme parts
Diffstat (limited to 'gtk/gtkcssnumbervalue.c')
-rw-r--r--gtk/gtkcssnumbervalue.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gtk/gtkcssnumbervalue.c b/gtk/gtkcssnumbervalue.c
index e8256c0cf7..54e1d1c006 100644
--- a/gtk/gtkcssnumbervalue.c
+++ b/gtk/gtkcssnumbervalue.c
@@ -133,7 +133,11 @@ gtk_css_number_value_can_parse (GtkCssParser *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-part-width")
- || _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-height");
+ || _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-height")
+ || _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-border-top")
+ || _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-border-left")
+ || _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-border-bottom")
+ || _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-border-right");
}
GtkCssValue *
@@ -144,7 +148,11 @@ _gtk_css_number_value_parse (GtkCssParser *parser,
return gtk_css_calc_value_parse (parser, flags);
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"))
+ _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-height") ||
+ _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-border-top") ||
+ _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-border-left") ||
+ _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-border-bottom") ||
+ _gtk_css_parser_has_prefix (parser, "-gtk-win32-part-border-right"))
return gtk_css_win32_size_value_parse (parser, flags);
return gtk_css_dimension_value_parse (parser, flags);