[Telepathy-commits] [telepathy-gabble/master] Channel.Type.DBusTube.DRAFT disabled because it is not implemented.
Alban Crequy
alban.crequy at collabora.co.uk
Wed Dec 17 04:43:27 PST 2008
---
src/private-tubes-factory.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/private-tubes-factory.c b/src/private-tubes-factory.c
index d3c3045..6562174 100644
--- a/src/private-tubes-factory.c
+++ b/src/private-tubes-factory.c
@@ -1047,6 +1047,9 @@ gabble_private_tubes_factory_foreach_channel_class (
g_hash_table_destroy (table);
/* 1-1 Channel.Type.DBusTube */
+ /* Channel.Type.DBusTube.DRAFT is not fully implemented yet, so let's
+ * disable this. FIXME: enable this when implemented. */
+#if 0
table = g_hash_table_new_full (g_str_hash, g_str_equal, NULL,
(GDestroyNotify) tp_g_value_slice_free);
@@ -1063,6 +1066,7 @@ gabble_private_tubes_factory_foreach_channel_class (
func (manager, table, dbus_tube_channel_allowed_properties, user_data);
g_hash_table_destroy (table);
+#endif
}
@@ -1085,6 +1089,11 @@ gabble_private_tubes_factory_requestotron (GabblePrivateTubesFactory *self,
channel_type = tp_asv_get_string (request_properties,
TP_IFACE_CHANNEL ".ChannelType");
+ /* Channel.Type.DBusTube.DRAFT is not fully implemented yet, so let's
+ * disable this. FIXME: enable this when implemented. */
+ if (!tp_strdiff (channel_type, GABBLE_IFACE_CHANNEL_TYPE_DBUS_TUBE))
+ return FALSE;
+
if (tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TUBES) &&
tp_strdiff (channel_type, GABBLE_IFACE_CHANNEL_TYPE_STREAM_TUBE) &&
tp_strdiff (channel_type, GABBLE_IFACE_CHANNEL_TYPE_DBUS_TUBE))
--
1.5.6.5
More information about the Telepathy-commits
mailing list