From b2a5f6ab7a6672a02722beb40fd5e4484e68c780 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 5 Oct 2009 22:28:14 -0400 Subject: Putting commas on the properties. --- tools/dbusmenu-dumper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/dbusmenu-dumper.c b/tools/dbusmenu-dumper.c index 74c992d..5704311 100644 --- a/tools/dbusmenu-dumper.c +++ b/tools/dbusmenu-dumper.c @@ -36,14 +36,14 @@ print_menuitem (DbusmenuMenuitem * item, int depth) GList * properties = dbusmenu_menuitem_properties_list(item); GList * property; for (property = properties; property != NULL; property = g_list_next(property)) { - g_print("\n%s\"%s\": \"%s\"", space, (gchar *)property->data, dbusmenu_menuitem_property_get(item, (gchar *)property->data)); + g_print(",\n%s\"%s\": \"%s\"", space, (gchar *)property->data, dbusmenu_menuitem_property_get(item, (gchar *)property->data)); } g_list_free(properties); GList * children = dbusmenu_menuitem_get_children(item); if (children != NULL) { gchar * childspace = g_strnfill(depth + 4, ' '); - g_print("\n%s\"submenu\": [\n%s{\n", space, childspace); + g_print(",\n%s\"submenu\": [\n%s{\n", space, childspace); GList * child; for (child = children; child != NULL; child = g_list_next(child)) { print_menuitem(DBUSMENU_MENUITEM(child->data), depth + 4 + 2); -- cgit v1.2.3