core: Only emit notifications for multi-valued properties when necessary
authorPhilip Withnall <philip@tecnocode.co.uk>
Tue, 28 Aug 2012 23:23:40 +0000 (00:23 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Tue, 28 Aug 2012 23:23:40 +0000 (00:23 +0100)
commit8ae18840f0b84dc7b5ca5a985c343e284a2cce54
tree4ce5f601e700e3aa09242dc3aefb1bfe5fb6c905
parentaf4bb7b8660cddc8c0b377a3bab72f93d9e3e5b3
core: Only emit notifications for multi-valued properties when necessary

Previously, notifications were emitted whenever a related Persona’s property
changed, even if it had no effect on the Individual’s property. This was
causing infinite loops of notifications-then-getters-being-called in some
of the EDS tests. Bad.

This is fixed by only emitting notifications on Individuals’ multi-valued
properties if the properties have actually changed. Of course, this
requires lots of copying and pasting the same code because Vala doesn’t
have a preprocessor and delegates aren’t up to the job. Sigh.

See: https://bugzilla.gnome.org/show_bug.cgi?id=682809
folks/individual.vala