]> git.0d.be Git - empathy.git/commitdiff
Introduce empathy_tp_chat_leave
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 19 Feb 2010 15:26:58 +0000 (15:26 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 19 Feb 2010 15:26:58 +0000 (15:26 +0000)
libempathy-gtk/empathy-chat.c
libempathy/empathy-tp-chat.c
libempathy/empathy-tp-chat.h

index 0b8460f027f5386059eccd78222d1ebc69822788..1361840fa3256fd1eab4a29695c58a36bfb042a1 100644 (file)
@@ -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) {
index 65b4926c6b8f90c6fa32a0b687ba94a4a8b2d8ae..0b19a66807af5b7fbbe8e2d58b9e996ac01b55b6 100644 (file)
@@ -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);
+}
index f0a4caa875e517defa744f90fa605b15ec727688..37d6d68f9f11c05376c4b0ad4405cda5a1873724 100644 (file)
@@ -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__ */