[Telepathy-commits] [telepathy-gabble/master] tubes-channel: fire Closed and ChannelClosed signals with D-Bus tube too
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Feb 3 02:39:58 PST 2009
---
src/tubes-channel.c | 19 +++++--------------
1 files changed, 5 insertions(+), 14 deletions(-)
diff --git a/src/tubes-channel.c b/src/tubes-channel.c
index 56e8167..bfb0ce5 100644
--- a/src/tubes-channel.c
+++ b/src/tubes-channel.c
@@ -452,26 +452,17 @@ tube_closed_cb (GabbleTubeIface *tube,
tp_svc_channel_type_tubes_emit_tube_closed (self, tube_id);
- /* FIXME: this is a workaround while new tube API is not implemented on
- * D-Bus tubes */
- if (GABBLE_IS_TUBE_STREAM (tube))
- tp_svc_channel_emit_closed (tube);
+ tp_svc_channel_emit_closed (tube);
if (priv->handle_type == TP_HANDLE_TYPE_CONTACT)
{
- /* FIXME: this is a workaround while new tube API is not implemented on
- * D-Bus tubes */
- if (GABBLE_IS_TUBE_STREAM (tube))
- tp_channel_manager_emit_channel_closed_for_object (
- priv->conn->private_tubes_factory, TP_EXPORTABLE_CHANNEL (tube));
+ tp_channel_manager_emit_channel_closed_for_object (
+ priv->conn->private_tubes_factory, TP_EXPORTABLE_CHANNEL (tube));
}
else
{
- /* FIXME: this is a workaround while new tube API is not implemented on
- * D-Bus tubes */
- if (GABBLE_IS_TUBE_STREAM (tube))
- tp_channel_manager_emit_channel_closed_for_object (
- priv->conn->muc_factory, TP_EXPORTABLE_CHANNEL (tube));
+ tp_channel_manager_emit_channel_closed_for_object (
+ priv->conn->muc_factory, TP_EXPORTABLE_CHANNEL (tube));
}
}
--
1.5.6.5
More information about the telepathy-commits
mailing list