[gnome-contacts/new-design] Add presence_changed specific signal to use for presence monitoring only
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/new-design] Add presence_changed specific signal to use for presence monitoring only
- Date: Mon, 12 Dec 2011 15:33:13 +0000 (UTC)
commit ce260307820c29ddc3fe0e5b0d6251e505fb1fc3
Author: Alexander Larsson <alexl redhat com>
Date: Mon Dec 12 11:24:02 2011 +0100
Add presence_changed specific signal to use for presence monitoring only
src/contacts-contact.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 0d8b5ee..f56c44c 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -94,7 +94,7 @@ public class Contacts.ContactPresence : Grid {
update_presence_widgets ();
- var id = contact.changed.connect ( () => {
+ var id = contact.presence_changed.connect ( () => {
update_presence_widgets ();
});
@@ -251,6 +251,7 @@ public class Contacts.Contact : GLib.Object {
private string filter_data;
+ public signal void presence_changed ();
public signal void changed ();
private bool _is_hidden;
@@ -304,6 +305,7 @@ public class Contacts.Contact : GLib.Object {
}
private void persona_notify_cb (ParamSpec pspec) {
+ this.presence_changed ();
queue_changed ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]