diff options
author | Chris Coulson <chris.coulson@canonical.com> | 2013-05-17 22:30:19 +0100 |
---|---|---|
committer | Chris Coulson <chris.coulson@canonical.com> | 2013-05-17 22:30:19 +0100 |
commit | ec9f767eac6b83d1dbf7200cddc1dbe81a9d11d7 (patch) | |
tree | 9ebbd1108e42920f8b508ca5e7edfc5373f2e4e5 /tests/test-gtk-reorder-server.c | |
parent | 404198e78252143ef700f9a419c351e3042620e2 (diff) | |
download | libdbusmenu-ec9f767eac6b83d1dbf7200cddc1dbe81a9d11d7.tar.gz libdbusmenu-ec9f767eac6b83d1dbf7200cddc1dbe81a9d11d7.tar.bz2 libdbusmenu-ec9f767eac6b83d1dbf7200cddc1dbe81a9d11d7.zip |
Set the max ID of menuitems to G_MAXINT rather than 30000, as internally, the server side happily creates ID's greater than this which then wraparound on the client side.
We keep the minimum unchanged at -1, as some consumers addume that < 0 is an error (rather than -1). To make this a bit less fragile, handle rollover on the server side from G_MAXINT to 1, rather than having a signed integer overflow which will just break things a bit later on
Diffstat (limited to 'tests/test-gtk-reorder-server.c')
0 files changed, 0 insertions, 0 deletions