diff options
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-tp-contact-list.c | 37 | ||||
-rw-r--r-- | libempathy/gossip-contact.c | 2 |
2 files changed, 1 insertions, 38 deletions
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c index 284f51138..e54ebef38 100644 --- a/libempathy/empathy-tp-contact-list.c +++ b/libempathy/empathy-tp-contact-list.c @@ -144,9 +144,6 @@ static void tp_contact_list_pending_cb (GossipTe static void tp_contact_list_groups_updated_cb (GossipContact *contact, GParamSpec *param, EmpathyTpContactList *list); -static void tp_contact_list_subscription_updated_cb (GossipContact *contact, - GParamSpec *param, - EmpathyTpContactList *list); static void tp_contact_list_name_updated_cb (GossipContact *contact, GParamSpec *param, EmpathyTpContactList *list); @@ -710,9 +707,6 @@ empathy_tp_contact_list_get_from_handles (EmpathyTpContactList *list, g_signal_connect (contact, "notify::groups", G_CALLBACK (tp_contact_list_groups_updated_cb), list); - g_signal_connect (contact, "notify::subscription", - G_CALLBACK (tp_contact_list_subscription_updated_cb), - list); g_signal_connect (contact, "notify::name", G_CALLBACK (tp_contact_list_name_updated_cb), list); @@ -871,9 +865,6 @@ tp_contact_list_contact_removed_foreach (guint handle, tp_contact_list_groups_updated_cb, list); g_signal_handlers_disconnect_by_func (contact, - tp_contact_list_subscription_updated_cb, - list); - g_signal_handlers_disconnect_by_func (contact, tp_contact_list_name_updated_cb, list); @@ -888,9 +879,6 @@ tp_contact_list_block_contact (EmpathyTpContactList *list, tp_contact_list_groups_updated_cb, list); g_signal_handlers_block_by_func (contact, - tp_contact_list_subscription_updated_cb, - list); - g_signal_handlers_block_by_func (contact, tp_contact_list_name_updated_cb, list); } @@ -903,9 +891,6 @@ tp_contact_list_unblock_contact (EmpathyTpContactList *list, tp_contact_list_groups_updated_cb, list); g_signal_handlers_unblock_by_func (contact, - tp_contact_list_subscription_updated_cb, - list); - g_signal_handlers_unblock_by_func (contact, tp_contact_list_name_updated_cb, list); } @@ -1278,28 +1263,6 @@ tp_contact_list_groups_updated_cb (GossipContact *contact, } static void -tp_contact_list_subscription_updated_cb (GossipContact *contact, - GParamSpec *param, - EmpathyTpContactList *list) -{ - EmpathyTpContactListPriv *priv; - GossipSubscription subscription; - guint handle; - - priv = GET_PRIV (list); - - subscription = gossip_contact_get_subscription (contact); - handle = gossip_contact_get_handle (contact); - - /* FIXME: what to do here, I'm a bit lost... */ - if (subscription) { - gossip_telepathy_group_add_member (priv->publish, handle, ""); - } else { - gossip_telepathy_group_remove_member (priv->publish, handle, ""); - } -} - -static void tp_contact_list_name_updated_cb (GossipContact *contact, GParamSpec *param, EmpathyTpContactList *list) diff --git a/libempathy/gossip-contact.c b/libempathy/gossip-contact.c index 78b2eefd0..267d86646 100644 --- a/libempathy/gossip-contact.c +++ b/libempathy/gossip-contact.c @@ -652,7 +652,7 @@ gossip_contact_get_status (GossipContact *contact) return status; } - return _("Offline"); + return gossip_presence_state_get_default_status (MC_PRESENCE_OFFLINE); } GossipContact * |