[gnome-contacts/wip/sorted] Update ContactPresense when persona set changes
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/sorted] Update ContactPresense when persona set changes
- Date: Fri, 11 May 2012 14:51:40 +0000 (UTC)
commit 16e60db53ef4141911f14c96301be2873c4b2611
Author: Alexander Larsson <alexl redhat com>
Date: Fri May 11 16:49:21 2012 +0200
Update ContactPresense when persona set changes
We might have added or removed a telepathy persona
src/contacts-contact.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 27c2bf1..e1ac4e5 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -99,8 +99,13 @@ public class Contacts.ContactPresence : Grid {
update_presence_widgets ();
});
+ var id2 = contact.personas_changed.connect ( () => {
+ update_presence_widgets ();
+ });
+
this.destroy.connect (() => {
contact.disconnect (id);
+ contact.disconnect (id2);
});
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]