From b13fe82d9d489e0c77cd4e8a9e09fce934d40865 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 28 Jun 2010 11:14:28 -0500 Subject: Giving the depth as well so this can look nice. --- 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 38284b1..5790828 100644 --- a/tools/dbusmenu-dumper.c +++ b/tools/dbusmenu-dumper.c @@ -30,7 +30,7 @@ with this program. If not, see . static GMainLoop * mainloop = NULL; static gchar * -collection_dumper (const GValue * value) +collection_dumper (const GValue * value, int depth) { return g_strdup(""); } @@ -47,7 +47,7 @@ print_menuitem (DbusmenuMenuitem * item, int depth) const GValue * value = dbusmenu_menuitem_property_get_value(item, (gchar *)property->data); gchar * str = NULL; if (dbus_g_type_is_collection(G_VALUE_TYPE(value))) { - str = collection_dumper(value); + str = collection_dumper(value, depth + g_utf8_strlen((gchar *)property->data, -1) + 2); } else { str = g_strdup_value_contents(value); } -- cgit v1.2.3