+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.
+
2007-06-02 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/gossip-ui-utils.c:
/* Create contact list */
priv->store = gossip_contact_list_store_new (EMPATHY_CONTACT_LIST (priv->tp_chat));
priv->view = gossip_contact_list_view_new (priv->store);
- gossip_contact_list_store_set_show_offline (priv->store, TRUE);
gtk_container_add (GTK_CONTAINER (priv->scrolled_window_contacts),
GTK_WIDGET (priv->view));
gtk_widget_show (GTK_WIDGET (priv->view));
"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);
}
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,