mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
cssnode: Add gtk_css_node_reverse_children()
This commit is contained in:
parent
6e4f42f97e
commit
a7680c68de
@ -772,6 +772,21 @@ gtk_css_node_insert_before (GtkCssNode *parent,
|
|||||||
next_sibling ? next_sibling->previous_sibling : parent->last_child);
|
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 *
|
GtkCssNode *
|
||||||
gtk_css_node_get_parent (GtkCssNode *cssnode)
|
gtk_css_node_get_parent (GtkCssNode *cssnode)
|
||||||
{
|
{
|
||||||
|
@ -101,6 +101,8 @@ void gtk_css_node_insert_after (GtkCssNode *
|
|||||||
void gtk_css_node_insert_before (GtkCssNode *parent,
|
void gtk_css_node_insert_before (GtkCssNode *parent,
|
||||||
GtkCssNode *cssnode,
|
GtkCssNode *cssnode,
|
||||||
GtkCssNode *next_sibling);
|
GtkCssNode *next_sibling);
|
||||||
|
void gtk_css_node_reverse_children (GtkCssNode *cssnode);
|
||||||
|
|
||||||
GtkCssNode * gtk_css_node_get_parent (GtkCssNode *cssnode);
|
GtkCssNode * gtk_css_node_get_parent (GtkCssNode *cssnode);
|
||||||
GtkCssNode * gtk_css_node_get_first_child (GtkCssNode *cssnode);
|
GtkCssNode * gtk_css_node_get_first_child (GtkCssNode *cssnode);
|
||||||
GtkCssNode * gtk_css_node_get_last_child (GtkCssNode *cssnode);
|
GtkCssNode * gtk_css_node_get_last_child (GtkCssNode *cssnode);
|
||||||
|
Loading…
Reference in New Issue
Block a user