[Xfce4-commits] <garcon:master> Print information about the different stages of test-menu-parser.
Jannis Pohlmann
noreply at xfce.org
Sun Jun 26 23:38:01 CEST 2011
Updating branch refs/heads/master
to e55762858aac06aa4d55a0cde3d1ede77ac97f45 (commit)
from e75fc6a382ada4dcc4c55bb54f4db9149f0be7e2 (commit)
commit e55762858aac06aa4d55a0cde3d1ede77ac97f45
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Sun Jun 26 23:30:26 2011 +0200
Print information about the different stages of test-menu-parser.
tests/test-menu-parser.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/tests/test-menu-parser.c b/tests/test-menu-parser.c
index ee4da65..e3dbf1e 100644
--- a/tests/test-menu-parser.c
+++ b/tests/test-menu-parser.c
@@ -255,18 +255,24 @@ main (int argc,
g_free (relative_filename);
}
+ filename = g_file_get_path (file);
+ g_print ("\nread menu from \"%s\"\n", filename);
+ g_free (filename);
+
parser = garcon_menu_parser_new (file);
g_object_unref (file);
if (G_LIKELY (garcon_menu_parser_run (parser, NULL, &error)))
{
+ g_print("\n\nafter parsing:\n\n");
+
print_tree (GARCON_MENU_TREE_PROVIDER (parser));
merger = garcon_menu_merger_new (GARCON_MENU_TREE_PROVIDER (parser));
if (G_LIKELY (garcon_menu_merger_run (merger, NULL, NULL, NULL, &error)))
{
- g_print ("\n\n");
+ g_print ("\n\nafter merging:\n\n");
print_tree (GARCON_MENU_TREE_PROVIDER (merger));
}
else
More information about the Xfce4-commits
mailing list