summaryrefslogtreecommitdiff
path: root/examples/client/stream-tubes
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-10-07 11:39:08 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-10-07 11:53:14 +0200
commit4b62540ab46e82ba63a6e6fbe875d1b67ef3631e (patch)
tree94607affad9d78043219ac0dad8895bcce07a00b /examples/client/stream-tubes
parent233ae50bfcf4558d204599d949e32f6f37460c16 (diff)
accepter.c: TpBaseClient gives us a TpStreamTubeChannel now
Diffstat (limited to 'examples/client/stream-tubes')
-rw-r--r--examples/client/stream-tubes/accepter.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/client/stream-tubes/accepter.c b/examples/client/stream-tubes/accepter.c
index 793e956d8..915e18546 100644
--- a/examples/client/stream-tubes/accepter.c
+++ b/examples/client/stream-tubes/accepter.c
@@ -91,7 +91,6 @@ _handle_channels (TpSimpleHandler *handler,
{
TpChannel *channel = l->data;
GHashTable *props = tp_channel_borrow_immutable_properties (channel);
- GError *error = NULL;
if (tp_channel_get_channel_type_id (channel) !=
TP_IFACE_QUARK_CHANNEL_TYPE_STREAM_TUBE)
@@ -104,11 +103,7 @@ _handle_channels (TpSimpleHandler *handler,
g_debug ("Accepting tube");
- tube = tp_stream_tube_channel_new (tp_channel_borrow_connection (channel),
- tp_proxy_get_object_path (channel),
- tp_channel_borrow_immutable_properties (channel),
- &error);
- g_assert_no_error (error);
+ tube = g_object_ref (channel);
g_signal_connect (tube, "invalidated",
G_CALLBACK (tube_invalidated_cb), NULL);