aboutsummaryrefslogtreecommitdiff
path: root/tests/test-glib-layout-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-05 09:54:42 -0800
committerTed Gould <ted@gould.cx>2010-02-05 09:54:42 -0800
commita930e6973028bc4e86080f2ae4b072a3f9cc61d0 (patch)
tree39481150054bfb8db1c14ac46e4d605b5feb55fa /tests/test-glib-layout-client.c
parent919aa5eca6bdc79bdb9276aa499c5b612cc28c4d (diff)
downloadlibdbusmenu-a930e6973028bc4e86080f2ae4b072a3f9cc61d0.tar.gz
libdbusmenu-a930e6973028bc4e86080f2ae4b072a3f9cc61d0.tar.bz2
libdbusmenu-a930e6973028bc4e86080f2ae4b072a3f9cc61d0.zip
Changing to the new ID error
Diffstat (limited to 'tests/test-glib-layout-client.c')
-rw-r--r--tests/test-glib-layout-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-glib-layout-client.c b/tests/test-glib-layout-client.c
index 82228b5..5ea0cf8 100644
--- a/tests/test-glib-layout-client.c
+++ b/tests/test-glib-layout-client.c
@@ -57,13 +57,13 @@ verify_root_to_layout(DbusmenuMenuitem * mi, layout_t * layout)
}
guint i = 0;
- for (i = 0; children != NULL && layout->submenu[i].id != 0; children = g_list_next(children), i++) {
+ for (i = 0; children != NULL && layout->submenu[i].id != -1; children = g_list_next(children), i++) {
if (!verify_root_to_layout(DBUSMENU_MENUITEM(children->data), &layout->submenu[i])) {
return FALSE;
}
}
- if (children == NULL && layout->submenu[i].id == 0) {
+ if (children == NULL && layout->submenu[i].id == -1) {
return TRUE;
}