diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-03 21:54:43 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-08 20:33:27 +0800 |
commit | e1cf171b3d8b349c1f92773130c94337076ca30b (patch) | |
tree | 51a59d7c005b3e445672dc523c8df1780e1e2158 /libempathy | |
parent | a8133af0231b5b7000f6f671215f841d68fb6bb4 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | libempathy/empathy-contact.c | 12 | ||||
-rw-r--r-- | libempathy/empathy-contact.h | 2 |
2 files changed, 14 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); +} diff --git a/libempathy/empathy-contact.h b/libempathy/empathy-contact.h index f15c8ad5d..d90ea2ad4 100644 --- a/libempathy/empathy-contact.h +++ b/libempathy/empathy-contact.h @@ -141,6 +141,8 @@ EmpathyContact * empathy_contact_dup_best_for_action ( void empathy_contact_add_to_contact_list (EmpathyContact *self, const gchar *message); +void empathy_contact_remove_from_contact_list (EmpathyContact *self); + G_END_DECLS #endif /* __EMPATHY_CONTACT_H__ */ |