]> git.0d.be Git - empathy.git/commitdiff
use tp_channel_get_requested()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 13 Sep 2010 15:49:04 +0000 (17:49 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 13 Sep 2010 15:50:27 +0000 (17:50 +0200)
libempathy/empathy-tp-call.c
libempathy/empathy-tp-file.c

index 9dcf9bfd770121f6ebf93a3769948d78938033dc..1a53de65d51299d1638edaf1c7719bbfe0830fba 100644 (file)
@@ -378,8 +378,6 @@ tp_call_constructor (GType type,
   GObject *object;
   EmpathyTpCall *call;
   EmpathyTpCallPriv *priv;
-  GHashTable *props;
-  gboolean requested;
 
   object = G_OBJECT_CLASS (empathy_tp_call_parent_class)->constructor (type,
       n_construct_params, construct_params);
@@ -404,10 +402,7 @@ tp_call_constructor (GType type,
       tp_call_request_streams_cb, NULL, NULL, G_OBJECT (call));
 
   /* Is the call incoming? */
-  props = tp_channel_borrow_immutable_properties (priv->channel);
-  requested = tp_asv_get_boolean (props, TP_PROP_CHANNEL_REQUESTED, NULL);
-
-  priv->is_incoming = !requested;
+  priv->is_incoming = !tp_channel_get_requested (priv->channel);
 
   /* Get the remote contact */
   empathy_tp_contact_factory_get_from_handle (
index 3ad81af6232920963f1672770e7b59d74669df44..25a8c40bc095c254bca7f8c2d4d03fec35399768 100644 (file)
@@ -787,7 +787,6 @@ do_constructed (GObject *object)
 {
   EmpathyTpFile *tp_file;
   EmpathyTpFilePriv *priv;
-  GHashTable *props;
 
   tp_file = EMPATHY_TP_FILE (object);
   priv = GET_PRIV (tp_file);
@@ -795,8 +794,7 @@ do_constructed (GObject *object)
   g_signal_connect (priv->channel, "invalidated",
     G_CALLBACK (tp_file_invalidated_cb), tp_file);
 
-  props = tp_channel_borrow_immutable_properties (priv->channel);
-  priv->incoming = !tp_asv_get_boolean (props, TP_PROP_CHANNEL_REQUESTED, NULL);
+  priv->incoming = !tp_channel_get_requested (priv->channel);
 
   tp_cli_channel_type_file_transfer_connect_to_file_transfer_state_changed (
       priv->channel, tp_file_state_changed_cb, NULL, NULL, object, NULL);