diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-06-18 22:10:29 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-06-21 14:54:32 +0800 |
commit | 6a401905c9f98fcf821383012e71f9ea8abe0bc3 (patch) | |
tree | 5fa0b8be90df8d921f413aeff08a3e5b92c509bf /libempathy/empathy-contact.c | |
parent | 7ed9fa5ef0cf9091ae3ea1b1e326440fe6d5727e (diff) | |
download | gsoc2013-empathy-6a401905c9f98fcf821383012e71f9ea8abe0bc3.tar gsoc2013-empathy-6a401905c9f98fcf821383012e71f9ea8abe0bc3.tar.gz gsoc2013-empathy-6a401905c9f98fcf821383012e71f9ea8abe0bc3.tar.bz2 gsoc2013-empathy-6a401905c9f98fcf821383012e71f9ea8abe0bc3.tar.lz gsoc2013-empathy-6a401905c9f98fcf821383012e71f9ea8abe0bc3.tar.xz gsoc2013-empathy-6a401905c9f98fcf821383012e71f9ea8abe0bc3.tar.zst gsoc2013-empathy-6a401905c9f98fcf821383012e71f9ea8abe0bc3.zip |
replace empathy_contact_can_use_stream_tube by empathy_contact_can_use_rfb_stream_tube
That's the only type of tube we care about and that allows us to enable the
'Share my Desktop' option only with contacts having a tube enabled Vinagre
installed (#589225).
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r-- | libempathy/empathy-contact.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index cbd3bd0ae..ba695ca57 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -970,7 +970,7 @@ empathy_contact_can_send_files (EmpathyContact *contact) } gboolean -empathy_contact_can_use_stream_tube (EmpathyContact *contact) +empathy_contact_can_use_rfb_stream_tube (EmpathyContact *contact) { EmpathyContactPriv *priv; @@ -978,7 +978,7 @@ empathy_contact_can_use_stream_tube (EmpathyContact *contact) priv = GET_PRIV (contact); - return priv->capabilities & EMPATHY_CAPABILITIES_STREAM_TUBE; + return priv->capabilities & EMPATHY_CAPABILITIES_RFB_STREAM_TUBE; } static gchar * @@ -1448,7 +1448,13 @@ tp_caps_to_capabilities (TpCapabilities *caps) } else if (!tp_strdiff (chan_type, TP_IFACE_CHANNEL_TYPE_STREAM_TUBE)) { - capabilities |= EMPATHY_CAPABILITIES_STREAM_TUBE; + const gchar *service; + + service = tp_asv_get_string (fixed_prop, + TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE); + + if (!tp_strdiff (service, "rfb")) + capabilities |= EMPATHY_CAPABILITIES_RFB_STREAM_TUBE; } else if (!tp_strdiff (chan_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA)) |