summaryrefslogtreecommitdiff
path: root/gtk/gtkcssmatcher.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-07-06 04:35:59 +0200
committerBenjamin Otte <otte@redhat.com>2015-07-06 15:33:50 +0200
commit4cbab1180c4599c87d596a43b3c67803c8aee8de (patch)
treeeee6e8b47d6fc10aed2e43e2f4db08b2ef3644da /gtk/gtkcssmatcher.c
parent8d3737e4e376bc6dcd4d581cbd34aa2ae3396c59 (diff)
downloadgtk+-4cbab1180c4599c87d596a43b3c67803c8aee8de.tar.gz
cssmatcher: Make nth-child(odd) work on first line
.. instead of only on 3rd, 5th, 7th, ...
Diffstat (limited to 'gtk/gtkcssmatcher.c')
-rw-r--r--gtk/gtkcssmatcher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssmatcher.c b/gtk/gtkcssmatcher.c
index a15232764b..59d613533b 100644
--- a/gtk/gtkcssmatcher.c
+++ b/gtk/gtkcssmatcher.c
@@ -208,7 +208,7 @@ gtk_css_matcher_widget_path_has_position (const GtkCssMatcher *matcher,
if (x % a)
return FALSE;
- return x / a > 0;
+ return x / a >= 0;
}
static const GtkCssMatcherClass GTK_CSS_MATCHER_WIDGET_PATH = {
@@ -381,7 +381,7 @@ gtk_css_matcher_node_nth_child (GtkCssNode *node,
if (x % a)
return FALSE;
- return x / a > 0;
+ return x / a >= 0;
}
static gboolean