From b659326acbfa02dab74fd88511673af0ddea81e6 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 10 Apr 2012 13:15:07 +0200 Subject: implement empathy_tp_chat_add as a method on TpChat We want to get rid of the EmpathyContactList interface. https://bugzilla.gnome.org/show_bug.cgi?id=673821 --- libempathy/empathy-tp-chat.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libempathy/empathy-tp-chat.c') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index f3a3aa832..28c0e2a19 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -157,12 +157,11 @@ create_conference_cb (GObject *source, } } -static void -tp_chat_add (EmpathyContactList *list, +void +empathy_tp_chat_add (EmpathyTpChat *self, EmpathyContact *contact, const gchar *message) { - EmpathyTpChat *self = (EmpathyTpChat *) list; TpChannel *channel = (TpChannel *) self; if (tp_proxy_has_interface_by_id (self, @@ -171,7 +170,6 @@ tp_chat_add (EmpathyContactList *list, TpHandle handle; GArray handles = {(gchar *) &handle, 1}; - g_return_if_fail (EMPATHY_IS_TP_CHAT (list)); g_return_if_fail (EMPATHY_IS_CONTACT (contact)); handle = empathy_contact_get_handle (contact); @@ -1326,7 +1324,6 @@ empathy_tp_chat_init (EmpathyTpChat *self) static void tp_chat_iface_init (EmpathyContactListIface *iface) { - iface->add = tp_chat_add; iface->remove = tp_chat_remove; iface->get_members = tp_chat_get_members; } -- cgit v1.2.3