css: Use the tree to print css selectors
This commit is contained in:
@ -1675,6 +1675,18 @@ _gtk_css_selector_tree_print (GtkCssSelectorTree *tree, GString *str, char *pref
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
_gtk_css_selector_tree_match_print (const GtkCssSelectorTree *tree,
|
||||
GString *str)
|
||||
{
|
||||
g_return_if_fail (tree != NULL);
|
||||
|
||||
tree->selector.class->print (&tree->selector, str);
|
||||
|
||||
if (tree->parent)
|
||||
_gtk_css_selector_tree_match_print (tree->parent, str);
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_css_selector_tree_free (GtkCssSelectorTree *tree)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user