projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d3737e
)
cssmatcher: Make nth-child(odd) work on first line
author
Benjamin Otte
<otte@redhat.com>
Mon, 6 Jul 2015 02:35:59 +0000
(
04:35
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 6 Jul 2015 13:33:50 +0000
(15:33 +0200)
.. instead of only on 3rd, 5th, 7th, ...
gtk/gtkcssmatcher.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssmatcher.c
b/gtk/gtkcssmatcher.c
index a15232764b8d61f62e00e9f300453b3e7ddb07dd..59d613533bb4aa8408602bbbde9aeac391c13f5c 100644
(file)
--- 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