aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-05 22:01:45 -0400
committerTed Gould <ted@canonical.com>2009-10-05 22:01:45 -0400
commit6a4bff121edff594b2e8a458fe0ae681ee23efbe (patch)
tree4e396e3cb1a880677322d2170656a0adf2f27624 /tools
parentb66fdf661dc9a14d3e842f045062a8f4937642c3 (diff)
downloadlibdbusmenu-6a4bff121edff594b2e8a458fe0ae681ee23efbe.tar.gz
libdbusmenu-6a4bff121edff594b2e8a458fe0ae681ee23efbe.tar.bz2
libdbusmenu-6a4bff121edff594b2e8a458fe0ae681ee23efbe.zip
Adding some more carriage returns.
Diffstat (limited to 'tools')
-rw-r--r--tools/dbusmenu-dumper.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/dbusmenu-dumper.c b/tools/dbusmenu-dumper.c
index 25b9047..9d0d420 100644
--- a/tools/dbusmenu-dumper.c
+++ b/tools/dbusmenu-dumper.c
@@ -43,12 +43,12 @@ print_menuitem (DbusmenuMenuitem * item, int depth)
GList * children = dbusmenu_menuitem_get_children(item);
if (children != NULL) {
gchar * childspace = g_strnfill(depth + 4, ' ');
- g_print("\n%s\"submenu\": [\n%s{", 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);
if (child->next != NULL) {
- g_print("\n%s},\n%s{", childspace, childspace);
+ g_print("\n%s},\n%s{\n", childspace, childspace);
}
}
g_print("\n%s}\n%s]", childspace, space);
@@ -71,8 +71,9 @@ new_root_cb (DbusmenuClient * client, DbusmenuMenuitem * newroot)
g_print("{\n");
print_menuitem(newroot, 2);
- g_print("}\n");
+ g_print("\n}\n");
+ g_main_quit(mainloop);
return;
}