aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-03 21:54:43 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-11-08 20:33:27 +0800
commite1cf171b3d8b349c1f92773130c94337076ca30b (patch)
tree51a59d7c005b3e445672dc523c8df1780e1e2158 /libempathy/empathy-contact.c
parenta8133af0231b5b7000f6f671215f841d68fb6bb4 (diff)
downloadgsoc2013-empathy-e1cf171b3d8b349c1f92773130c94337076ca30b.tar
gsoc2013-empathy-e1cf171b3d8b349c1f92773130c94337076ca30b.tar.gz
gsoc2013-empathy-e1cf171b3d8b349c1f92773130c94337076ca30b.tar.bz2
gsoc2013-empathy-e1cf171b3d8b349c1f92773130c94337076ca30b.tar.lz
gsoc2013-empathy-e1cf171b3d8b349c1f92773130c94337076ca30b.tar.xz
gsoc2013-empathy-e1cf171b3d8b349c1f92773130c94337076ca30b.tar.zst
gsoc2013-empathy-e1cf171b3d8b349c1f92773130c94337076ca30b.zip
add empathy_contact_remove_from_contact_list()
https://bugzilla.gnome.org/show_bug.cgi?id=663327
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index cf46069b7..572d49250 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -2109,3 +2109,15 @@ empathy_contact_add_to_contact_list (EmpathyContact *self,
tp_contact_unblock_async (priv->tp_contact, contact_unblock_cb, NULL);
}
+
+declare_contact_cb(remove)
+
+void
+empathy_contact_remove_from_contact_list (EmpathyContact *self)
+{
+ EmpathyContactPriv *priv = GET_PRIV (self);
+
+ g_return_if_fail (priv->tp_contact != NULL);
+
+ tp_contact_remove_async (priv->tp_contact, contact_remove_cb, NULL);
+}