aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-06-06 23:03:06 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-06-06 23:03:06 +0800
commitb1695c4a0881a60988b30dc03a71c166e73e5537 (patch)
tree5df8c2dc46ede948a234291709eff25ce44e3f55 /libempathy
parent05089ed22d62dc30ce6b03d65d37cb1cf53247ff (diff)
downloadgsoc2013-empathy-b1695c4a0881a60988b30dc03a71c166e73e5537.tar
gsoc2013-empathy-b1695c4a0881a60988b30dc03a71c166e73e5537.tar.gz
gsoc2013-empathy-b1695c4a0881a60988b30dc03a71c166e73e5537.tar.bz2
gsoc2013-empathy-b1695c4a0881a60988b30dc03a71c166e73e5537.tar.lz
gsoc2013-empathy-b1695c4a0881a60988b30dc03a71c166e73e5537.tar.xz
gsoc2013-empathy-b1695c4a0881a60988b30dc03a71c166e73e5537.tar.zst
gsoc2013-empathy-b1695c4a0881a60988b30dc03a71c166e73e5537.zip
2007-06-06 Xavier Claessens <xclaesse@gmail.com>
* libempathy-gtk/empathy-status-icon.c: * libempathy-gtk/empathy-contact-widget.glade: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/empathy-contact-widget.h: * libempathy-gtk/Makefile.am: New widget: EmpathyContactWidget. It displays information about a contact, it can be used in any kind of dialog which needs to display contact information like alias, groups, avatar, etc. If the contact is the selfcontact information are editable. * libempathy/empathy-tp-contact-list.c: Do not take care of subscription changes. * libempathy/gossip-contact.c: Use gossip_presence_state_get_default_status (MC_PRESENCE_OFFLINE) when there is no presence. git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@124 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-contact-list.c37
-rw-r--r--libempathy/gossip-contact.c2
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 *