diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-10 19:15:07 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-10 19:31:49 +0800 |
commit | b659326acbfa02dab74fd88511673af0ddea81e6 (patch) | |
tree | c04a4c74fa958ecc68557d4f8f772f57cb679b51 /libempathy | |
parent | 8e3b02e82557fd35059bc939fab25122cea78be5 (diff) | |
download | gsoc2013-empathy-b659326acbfa02dab74fd88511673af0ddea81e6.tar gsoc2013-empathy-b659326acbfa02dab74fd88511673af0ddea81e6.tar.gz gsoc2013-empathy-b659326acbfa02dab74fd88511673af0ddea81e6.tar.bz2 gsoc2013-empathy-b659326acbfa02dab74fd88511673af0ddea81e6.tar.lz gsoc2013-empathy-b659326acbfa02dab74fd88511673af0ddea81e6.tar.xz gsoc2013-empathy-b659326acbfa02dab74fd88511673af0ddea81e6.tar.zst gsoc2013-empathy-b659326acbfa02dab74fd88511673af0ddea81e6.zip |
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
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-tp-chat.c | 7 | ||||
-rw-r--r-- | libempathy/empathy-tp-chat.h | 4 |
2 files changed, 6 insertions, 5 deletions
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; } diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h index 7da675c32..adb2ee1c5 100644 --- a/libempathy/empathy-tp-chat.h +++ b/libempathy/empathy-tp-chat.h @@ -103,6 +103,10 @@ TpChannelChatState empathy_tp_chat_get_chat_state (EmpathyTpChat *chat, EmpathyContact * empathy_tp_chat_get_self_contact (EmpathyTpChat *self); +void empathy_tp_chat_add (EmpathyTpChat *self, + EmpathyContact *contact, + const gchar *message); + G_END_DECLS #endif /* __EMPATHY_TP_CHAT_H__ */ |