aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-contact-list.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-06-02 19:49:00 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-06-02 19:49:00 +0800
commite1110b246ff83d6add4bbf01c6ec8a8460070491 (patch)
tree277a31bda624dc3b3d968e70d6c4f8b818eb73a7 /libempathy/empathy-tp-contact-list.c
parent4ff74036b9f5d3d5298b80097bdac4365c289812 (diff)
downloadgsoc2013-empathy-e1110b246ff83d6add4bbf01c6ec8a8460070491.tar
gsoc2013-empathy-e1110b246ff83d6add4bbf01c6ec8a8460070491.tar.gz
gsoc2013-empathy-e1110b246ff83d6add4bbf01c6ec8a8460070491.tar.bz2
gsoc2013-empathy-e1110b246ff83d6add4bbf01c6ec8a8460070491.tar.lz
gsoc2013-empathy-e1110b246ff83d6add4bbf01c6ec8a8460070491.tar.xz
gsoc2013-empathy-e1110b246ff83d6add4bbf01c6ec8a8460070491.tar.zst
gsoc2013-empathy-e1110b246ff83d6add4bbf01c6ec8a8460070491.zip
Set default presence to available if there is no presence iface.
2007-06-02 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/gossip-group-chat.c: * libempathy/empathy-tp-contact-list.c: * libempathy/gossip-contact.c: Set default presence to available if there is no presence iface. svn path=/trunk/; revision=113
Diffstat (limited to 'libempathy/empathy-tp-contact-list.c')
-rw-r--r--libempathy/empathy-tp-contact-list.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index 6af5ed064..760ee013b 100644
--- a/libempathy/empathy-tp-contact-list.c
+++ b/libempathy/empathy-tp-contact-list.c
@@ -684,6 +684,18 @@ empathy_tp_contact_list_get_from_handles (EmpathyTpContactList *list,
"handle", handle,
NULL);
+ if (!priv->presence_iface) {
+ GossipPresence *presence;
+
+ /* We have no presence iface, set default presence
+ * to available */
+ presence = gossip_presence_new_full (MC_PRESENCE_AVAILABLE,
+ NULL);
+
+ gossip_contact_set_presence (contact, presence);
+ g_object_unref (presence);
+ }
+
g_signal_connect (contact, "notify::groups",
G_CALLBACK (tp_contact_list_groups_updated_cb),
list);