Don't pass empty property array to RegisterEvent
authorMike Gorse <mgorse@suse.com>
Mon, 24 Feb 2014 23:11:22 +0000 (17:11 -0600)
committerMike Gorse <mgorse@suse.com>
Mon, 24 Feb 2014 23:11:22 +0000 (17:11 -0600)
commit902f2cc4e7b6b158411d9e8f5af473a5bf0624b2
treeff13602c1977d48e30af1ae3b59d2696888a0349
parent851da8186e9e1da7f4099d707a727da3e27d60b0
Don't pass empty property array to RegisterEvent

Apparently, for some reason unknown to me, it is sometimes possible for
a jhbuild session to be running an at-spi2-registryd from the system
directory, rather than the jhbuild install, so it is useful to be
compatible with at-spi2-registryd <= 3.10. So, for now, if no properties
are being requested with an event, then let's leave off the (empty)
array.

Also modify at-spi2-registryd to accept the old form of RegisterEvent.

We may want to revert this eventually; it would be cleaner not to send
two different forms of RegisterEvent.
atspi/atspi-event-listener.c
registryd/registry.c