From 3747e0fc4e4f46ebad5bddd0d698769888c0941b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 21 Jul 2014 19:53:12 +0200 Subject: css: Make commented out debug code work again --- gtk/gtkcssselector.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gtk/gtkcssselector.c') diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c index 352e67c015..ca9c45dfb6 100644 --- a/gtk/gtkcssselector.c +++ b/gtk/gtkcssselector.c @@ -2199,26 +2199,26 @@ _gtk_css_selector_tree_get_change_all (const GtkCssSelectorTree *tree, #ifdef PRINT_TREE static void -_gtk_css_selector_tree_print (GtkCssSelectorTree *tree, GString *str, char *prefix) +_gtk_css_selector_tree_print (const GtkCssSelectorTree *tree, GString *str, char *prefix) { gboolean first = TRUE; int len, i; - for (; tree != NULL; tree = tree->siblings, first = FALSE) + for (; tree != NULL; tree = gtk_css_selector_tree_get_sibling (tree), first = FALSE) { if (!first) g_string_append (str, prefix); if (first) { - if (tree->siblings) + if (gtk_css_selector_tree_get_sibling (tree)) g_string_append (str, "─┬─"); else g_string_append (str, "───"); } else { - if (tree->siblings) + if (gtk_css_selector_tree_get_sibling (tree)) g_string_append (str, " ├─"); else g_string_append (str, " └─"); @@ -2232,7 +2232,7 @@ _gtk_css_selector_tree_print (GtkCssSelectorTree *tree, GString *str, char *pref { GString *prefix2 = g_string_new (prefix); - if (tree->siblings) + if (gtk_css_selector_tree_get_sibling (tree)) g_string_append (prefix2, " │ "); else g_string_append (prefix2, " "); -- cgit v1.2.1