aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-26 00:28:30 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-26 18:55:39 +0800
commit05277804298243cba14676f60e8e0e771821ab86 (patch)
treeca33d34733396355c4bd78a2c6f1bed6ac892c84
parent96d54005b3a7f81f7f4320e5e074c1042a914576 (diff)
downloadgsoc2013-empathy-05277804298243cba14676f60e8e0e771821ab86.tar
gsoc2013-empathy-05277804298243cba14676f60e8e0e771821ab86.tar.gz
gsoc2013-empathy-05277804298243cba14676f60e8e0e771821ab86.tar.bz2
gsoc2013-empathy-05277804298243cba14676f60e8e0e771821ab86.tar.lz
gsoc2013-empathy-05277804298243cba14676f60e8e0e771821ab86.tar.xz
gsoc2013-empathy-05277804298243cba14676f60e8e0e771821ab86.tar.zst
gsoc2013-empathy-05277804298243cba14676f60e8e0e771821ab86.zip
use tp_account_channel_request_new_stream_tube()
https://bugzilla.gnome.org/show_bug.cgi?id=725070
-rw-r--r--libempathy-gtk/empathy-share-my-desktop.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/libempathy-gtk/empathy-share-my-desktop.c b/libempathy-gtk/empathy-share-my-desktop.c
index 147f4f752..07edfce46 100644
--- a/libempathy-gtk/empathy-share-my-desktop.c
+++ b/libempathy-gtk/empathy-share-my-desktop.c
@@ -45,7 +45,6 @@ void
empathy_share_my_desktop_share_with_contact (EmpathyContact *contact)
{
TpAccountChannelRequest *req;
- GHashTable *request;
TpContact *tp_contact;
tp_contact = empathy_contact_get_tp_contact (contact);
@@ -58,14 +57,9 @@ empathy_share_my_desktop_share_with_contact (EmpathyContact *contact)
return;
}
- request = tp_asv_new (
- TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
- TP_IFACE_CHANNEL_TYPE_STREAM_TUBE,
- TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE, G_TYPE_STRING, "rfb",
- NULL);
-
- req = tp_account_channel_request_new (empathy_contact_get_account (contact),
- request, TP_USER_ACTION_TIME_CURRENT_TIME);
+ req = tp_account_channel_request_new_stream_tube (
+ empathy_contact_get_account (contact), "rfb",
+ TP_USER_ACTION_TIME_CURRENT_TIME);
tp_account_channel_request_set_target_contact (req, tp_contact);
@@ -73,5 +67,4 @@ empathy_share_my_desktop_share_with_contact (EmpathyContact *contact)
create_tube_channel_cb, NULL);
g_object_unref (req);
- g_hash_table_unref (request);
}