diff options
author | Ted Gould <ted@gould.cx> | 2010-02-05 09:54:42 -0800 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-05 09:54:42 -0800 |
commit | a930e6973028bc4e86080f2ae4b072a3f9cc61d0 (patch) | |
tree | 39481150054bfb8db1c14ac46e4d605b5feb55fa /tests | |
parent | 919aa5eca6bdc79bdb9276aa499c5b612cc28c4d (diff) | |
download | libdbusmenu-a930e6973028bc4e86080f2ae4b072a3f9cc61d0.tar.gz libdbusmenu-a930e6973028bc4e86080f2ae4b072a3f9cc61d0.tar.bz2 libdbusmenu-a930e6973028bc4e86080f2ae4b072a3f9cc61d0.zip |
Changing to the new ID error
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-glib-layout-client.c | 4 |
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; } |