[empathy] add empathy_contact_remove_from_contact_list()



commit e1cf171b3d8b349c1f92773130c94337076ca30b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Nov 3 14:54:43 2011 +0100

    add empathy_contact_remove_from_contact_list()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663327

 libempathy/empathy-contact.c |   12 ++++++++++++
 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 cf46069..572d492 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 f15c8ad..d90ea2a 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__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]