[sugar] [PATCH] services/presence/: move more of the handle tracking into the Buddy object

Simon McVittie simon.mcvittie at collabora.co.uk
Tue May 22 13:27:26 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 22 May 2007 at 12:42:13 -0400, Dan Williams wrote:
> The reason there were symmetrical BuddyAppeared/BuddyDisappeared signals
> on the PS object itself was so that clients could attach to _one_ signal
> on the PS to detect buddy disappearance, rather than connecting a signal
> to each buddy him/herself.  This would suck for the mesh view, for
> example

I'm not altering the D-Bus API with this patch - it's just
some refactoring to put code in a better place. The Buddy emits a
GSignal 'disappeared' when it runs out of handles, which causes the PS to
emit BuddyDisappeared; this is as opposed to having the PS inspect the
Buddy to see if it has any handles left.

	Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net

iD8DBQFGUyf+WSc8zVUw7HYRAl3SAKDJPrEyZ1YqkvuZPACCzLqo3FaP9gCg6ZdG
nDbaIizmgLTZzkVcEtGp7QU=
=5BPp
-----END PGP SIGNATURE-----


More information about the Sugar mailing list