aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-layout-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-05-10 22:26:25 -0500
committerTed Gould <ted@canonical.com>2009-05-10 22:26:25 -0500
commit65e3edf11624283530ba8de1e7c68244b04f9ea6 (patch)
tree101ac065e08c8244716b5cf602661982d773ba67 /tests/test-glib-layout-client.c
parent3c7a5751473ef1c92de1aff135dd055bda05257e (diff)
downloadlibdbusmenu-65e3edf11624283530ba8de1e7c68244b04f9ea6.tar.gz
libdbusmenu-65e3edf11624283530ba8de1e7c68244b04f9ea6.tar.bz2
libdbusmenu-65e3edf11624283530ba8de1e7c68244b04f9ea6.zip
Looking at submenus instead of the current array as we should have been originally. Oops.
Diffstat (limited to 'tests/test-glib-layout-client.c')
-rw-r--r--tests/test-glib-layout-client.c8
1 files changed, 4 insertions, 4 deletions
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;
}