]> git.0d.be Git - empathy.git/commitdiff
share-my-desktop: use tp_account_channel_request_set_target_contact()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 24 Feb 2014 14:59:55 +0000 (15:59 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 26 Feb 2014 09:32:36 +0000 (10:32 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=725070

libempathy-gtk/empathy-share-my-desktop.c

index 1acfacef73414337e8633e3439cd09dfe4f7cee0..147f4f752362ed710ca6618bcd35869dbe0b416f 100644 (file)
@@ -61,16 +61,14 @@ empathy_share_my_desktop_share_with_contact (EmpathyContact *contact)
   request = tp_asv_new (
       TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
         TP_IFACE_CHANNEL_TYPE_STREAM_TUBE,
   request = tp_asv_new (
       TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
         TP_IFACE_CHANNEL_TYPE_STREAM_TUBE,
-      TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT,
-        TP_HANDLE_TYPE_CONTACT,
-      TP_PROP_CHANNEL_TARGET_HANDLE, G_TYPE_UINT,
-        tp_contact_get_handle (tp_contact),
       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);
 
       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);
 
+  tp_account_channel_request_set_target_contact (req, tp_contact);
+
   tp_account_channel_request_create_channel_async (req, NULL, NULL,
       create_tube_channel_cb, NULL);
 
   tp_account_channel_request_create_channel_async (req, NULL, NULL,
       create_tube_channel_cb, NULL);