diff options
author | Benjamin Otte <otte@redhat.com> | 2015-07-12 23:11:11 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-07-16 06:15:13 +0200 |
commit | a7680c68de3cc5012ac7a63658c051f1771e8af9 (patch) | |
tree | 128c81d13c88056626b354a3ac876244966e6736 /gtk/gtkcssnode.c | |
parent | 6e4f42f97e4b61d9fb2c3e8ecc0ac9baa3eb890b (diff) | |
download | gtk+-a7680c68de3cc5012ac7a63658c051f1771e8af9.tar.gz |
cssnode: Add gtk_css_node_reverse_children()
Diffstat (limited to 'gtk/gtkcssnode.c')
-rw-r--r-- | gtk/gtkcssnode.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c index 8f1e4d9df5..9d76f2ae31 100644 --- a/gtk/gtkcssnode.c +++ b/gtk/gtkcssnode.c @@ -772,6 +772,21 @@ gtk_css_node_insert_before (GtkCssNode *parent, next_sibling ? next_sibling->previous_sibling : parent->last_child); } +void +gtk_css_node_reverse_children (GtkCssNode *cssnode) +{ + GtkCssNode *end; + + end = cssnode->last_child; + while (cssnode->first_child != end) + { + gtk_css_node_reposition (cssnode->first_child, + cssnode, + end); + } + +} + GtkCssNode * gtk_css_node_get_parent (GtkCssNode *cssnode) { |