diff options
author | Ted Gould <ted@canonical.com> | 2009-10-05 22:28:14 -0400 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-05 22:28:14 -0400 |
commit | b2a5f6ab7a6672a02722beb40fd5e4484e68c780 (patch) | |
tree | e3527e24a58928b5b3f7c447aea84f7977d7a446 /tools | |
parent | 43d3d3a1ad4338110116e9312800a030c7f1606f (diff) | |
download | libdbusmenu-b2a5f6ab7a6672a02722beb40fd5e4484e68c780.tar.gz libdbusmenu-b2a5f6ab7a6672a02722beb40fd5e4484e68c780.tar.bz2 libdbusmenu-b2a5f6ab7a6672a02722beb40fd5e4484e68c780.zip |
Putting commas on the properties.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbusmenu-dumper.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |