[vino] Use tp_stream_tube_channel_get_service()
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vino] Use tp_stream_tube_channel_get_service()
- Date: Wed, 25 Apr 2012 09:59:14 +0000 (UTC)
commit df6ad5ca4a7159b50415b2156d58b0f55799f371
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Apr 24 14:51:30 2012 +0200
Use tp_stream_tube_channel_get_service()
The offering high level API is not used as it does not currently support
offering an existing socket. Completes the fixes for bug 674707.
server/vino-tube-servers-manager.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/server/vino-tube-servers-manager.c b/server/vino-tube-servers-manager.c
index 2b03cd2..28ae703 100644
--- a/server/vino-tube-servers-manager.c
+++ b/server/vino-tube-servers-manager.c
@@ -185,25 +185,19 @@ handle_channels_cb (TpSimpleHandler *handler,
connect to it */
gchar * network_interface = "lo";
GList *l;
- TpChannel *channel = NULL;
+ TpStreamTubeChannel *channel = NULL;
for (l = channels; l != NULL; l = g_list_next (l))
{
- TpChannel *chan = l->data;
- const gchar *service;
+ TpStreamTubeChannel *chan = l->data;
- if (tp_channel_get_channel_type_id (chan) !=
- TP_IFACE_QUARK_CHANNEL_TYPE_STREAM_TUBE)
+ if (!TP_IS_STREAM_TUBE_CHANNEL (chan))
continue;
if (tp_proxy_get_invalidated (chan) != NULL)
continue;
- service = tp_asv_get_string (
- tp_channel_borrow_immutable_properties (chan),
- TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE);
-
- if (tp_strdiff (service, "rfb"))
+ if (tp_strdiff (tp_stream_tube_channel_get_service (chan), "rfb"))
continue;
channel = chan;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]