From 998ef19cf8a2e546208d1fb0a835032a7e07e543 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 19 Feb 2010 15:26:58 +0000 Subject: Introduce empathy_tp_chat_leave --- libempathy-gtk/empathy-chat.c | 2 +- libempathy/empathy-tp-chat.c | 6 ++++++ libempathy/empathy-tp-chat.h | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 0b8460f02..1361840fa 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -2263,7 +2263,7 @@ chat_finalize (GObject *object) chat_members_changed_cb, chat); g_signal_handlers_disconnect_by_func (priv->tp_chat, chat_remote_contact_changed_cb, chat); - empathy_tp_chat_close (priv->tp_chat); + empathy_tp_chat_leave (priv->tp_chat); g_object_unref (priv->tp_chat); } if (priv->account) { diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 65b4926c6..0b19a6680 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -1804,3 +1804,9 @@ empathy_tp_chat_can_add_contact (EmpathyTpChat *self) tp_proxy_has_interface_by_id (priv->channel, TP_IFACE_QUARK_CHANNEL_INTERFACE_GROUP);; } + +void +empathy_tp_chat_leave (EmpathyTpChat *self) +{ + empathy_tp_chat_close (self); +} diff --git a/libempathy/empathy-tp-chat.h b/libempathy/empathy-tp-chat.h index f0a4caa87..37d6d68f9 100644 --- a/libempathy/empathy-tp-chat.h +++ b/libempathy/empathy-tp-chat.h @@ -99,6 +99,8 @@ gboolean empathy_tp_chat_provide_password_finish (EmpathyTpChat *chat, GError **error); gboolean empathy_tp_chat_can_add_contact (EmpathyTpChat *self); +void empathy_tp_chat_leave (EmpathyTpChat *chat); + G_END_DECLS #endif /* __EMPATHY_TP_CHAT_H__ */ -- cgit v1.2.3