From 65e3edf11624283530ba8de1e7c68244b04f9ea6 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sun, 10 May 2009 22:26:25 -0500 Subject: Looking at submenus instead of the current array as we should have been originally. Oops. --- tests/test-glib-layout-client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test-glib-layout-client.c') diff --git a/tests/test-glib-layout-client.c b/tests/test-glib-layout-client.c index 2099cd5..6c012a5 100644 --- a/tests/test-glib-layout-client.c +++ b/tests/test-glib-layout-client.c @@ -34,20 +34,20 @@ verify_root_to_layout(DbusmenuMenuitem * mi, layout_t * layout) } guint i = 0; - for (i = 0; children != NULL && layout[i].id != 0; children = g_list_next(children), i++) { + for (i = 0; children != NULL && layout->submenu[i].id != 0; children = g_list_next(children), i++) { if (!verify_root_to_layout(DBUSMENU_MENUITEM(children->data), &layout->submenu[i])) { return FALSE; } } - if (children == NULL && layout[i].id == 0) { + if (children == NULL && layout->submenu[i].id == 0) { return TRUE; } if (children != NULL) { - g_debug("Failed as there are still children but no submenus"); + g_debug("Failed as there are still children but no submenus. (ID: %d)", layout->id); } else { - g_debug("Failed as there are still submenus but no children"); + g_debug("Failed as there are still submenus but no children. (ID: %d)", layout->id); } return FALSE; } -- cgit v1.2.3