[gtk2] use memcmp