aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-06-02 19:49:00 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-06-02 19:49:00 +0800
commit9e43e9af5f699b81d26d6283fd3320f4795476a5 (patch)
tree277a31bda624dc3b3d968e70d6c4f8b818eb73a7 /libempathy
parentaa3b4347b46beb70d190b0d8a64ca60954c30650 (diff)
downloadgsoc2013-empathy-9e43e9af5f699b81d26d6283fd3320f4795476a5.tar
gsoc2013-empathy-9e43e9af5f699b81d26d6283fd3320f4795476a5.tar.gz
gsoc2013-empathy-9e43e9af5f699b81d26d6283fd3320f4795476a5.tar.bz2
gsoc2013-empathy-9e43e9af5f699b81d26d6283fd3320f4795476a5.tar.lz
gsoc2013-empathy-9e43e9af5f699b81d26d6283fd3320f4795476a5.tar.xz
gsoc2013-empathy-9e43e9af5f699b81d26d6283fd3320f4795476a5.tar.zst
gsoc2013-empathy-9e43e9af5f699b81d26d6283fd3320f4795476a5.zip
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. git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@113 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-contact-list.c12
-rw-r--r--libempathy/gossip-contact.c6
2 files changed, 15 insertions, 3 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);
diff --git a/libempathy/gossip-contact.c b/libempathy/gossip-contact.c
index 51015f365..78b2eefd0 100644
--- a/libempathy/gossip-contact.c
+++ b/libempathy/gossip-contact.c
@@ -333,9 +333,9 @@ gossip_contact_new (McAccount *account)
}
GossipContact *
-gossip_contact_new_full (McAccount *account,
- const gchar *id,
- const gchar *name)
+gossip_contact_new_full (McAccount *account,
+ const gchar *id,
+ const gchar *name)
{
return g_object_new (GOSSIP_TYPE_CONTACT,
"account", account,