diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-19 23:26:58 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-19 23:26:58 +0800 |
commit | 998ef19cf8a2e546208d1fb0a835032a7e07e543 (patch) | |
tree | efc37d5e8a3a2b3084a8aa2406890597417440b2 | |
parent | 6e6f54464f4fe105bbda956699a6fc130c72b8d0 (diff) | |
download | gsoc2013-empathy-998ef19cf8a2e546208d1fb0a835032a7e07e543.tar gsoc2013-empathy-998ef19cf8a2e546208d1fb0a835032a7e07e543.tar.gz gsoc2013-empathy-998ef19cf8a2e546208d1fb0a835032a7e07e543.tar.bz2 gsoc2013-empathy-998ef19cf8a2e546208d1fb0a835032a7e07e543.tar.lz gsoc2013-empathy-998ef19cf8a2e546208d1fb0a835032a7e07e543.tar.xz gsoc2013-empathy-998ef19cf8a2e546208d1fb0a835032a7e07e543.tar.zst gsoc2013-empathy-998ef19cf8a2e546208d1fb0a835032a7e07e543.zip |
Introduce empathy_tp_chat_leave
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 2 | ||||
-rw-r--r-- | libempathy/empathy-tp-chat.c | 6 | ||||
-rw-r--r-- | libempathy/empathy-tp-chat.h | 2 |
3 files changed, 9 insertions, 1 deletions
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__ */ |