[Telepathy-commits] [telepathy-gabble/master] Don't include dtubes in tubes_foreach_channel.
Will Thompson
will.thompson at collabora.co.uk
Wed Jan 21 20:40:28 PST 2009
---
src/tubes-channel.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/tubes-channel.c b/src/tubes-channel.c
index 458501a..ea67cd2 100644
--- a/src/tubes-channel.c
+++ b/src/tubes-channel.c
@@ -705,8 +705,11 @@ foreach_slave (gpointer key,
{
GabbleTubeIface *tube = GABBLE_TUBE_IFACE (value);
struct _ForeachData *data = (struct _ForeachData *) user_data;
+ TpTubeType type;
- data->foreach (TP_EXPORTABLE_CHANNEL (tube), data->user_data);
+ g_object_get (tube, "type", &type, NULL);
+ if (type == TP_TUBE_TYPE_STREAM)
+ data->foreach (TP_EXPORTABLE_CHANNEL (tube), data->user_data);
}
void gabble_tubes_channel_foreach (GabbleTubesChannel *self,
--
1.5.6.5
More information about the Telepathy-commits
mailing list