aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-dispatch-operation.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-05-04 01:18:26 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:47:37 +0800
commit92da9df161cf8e104e783a943d40d7a248a18259 (patch)
tree32bfbacc8b9e60210385bcf1adfbd9b8cd3a49cb /libempathy/empathy-dispatch-operation.c
parent6ce42b069142048084697f8def936c5d7e376101 (diff)
downloadgsoc2013-empathy-92da9df161cf8e104e783a943d40d7a248a18259.tar
gsoc2013-empathy-92da9df161cf8e104e783a943d40d7a248a18259.tar.gz
gsoc2013-empathy-92da9df161cf8e104e783a943d40d7a248a18259.tar.bz2
gsoc2013-empathy-92da9df161cf8e104e783a943d40d7a248a18259.tar.lz
gsoc2013-empathy-92da9df161cf8e104e783a943d40d7a248a18259.tar.xz
gsoc2013-empathy-92da9df161cf8e104e783a943d40d7a248a18259.tar.zst
gsoc2013-empathy-92da9df161cf8e104e783a943d40d7a248a18259.zip
Set the "incoming" property at construct
Set the "incoming" property of EmpathyTpFile when we construct it from EmpathyDispatchOperation.
Diffstat (limited to 'libempathy/empathy-dispatch-operation.c')
-rw-r--r--libempathy/empathy-dispatch-operation.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libempathy/empathy-dispatch-operation.c b/libempathy/empathy-dispatch-operation.c
index cfe111181..2a98b912a 100644
--- a/libempathy/empathy-dispatch-operation.c
+++ b/libempathy/empathy-dispatch-operation.c
@@ -461,15 +461,8 @@ empathy_dispatch_operation_channel_ready_cb (TpChannel *channel,
}
else if (channel_type == TP_IFACE_QUARK_CHANNEL_TYPE_FILE_TRANSFER)
{
- EmpathyTpFile *file = empathy_tp_file_new (channel);
- priv->channel_wrapper = G_OBJECT (file);
-
- if (!empathy_tp_file_is_ready (file))
- {
- priv->ready_handler = g_signal_connect (file, "notify::ready",
- G_CALLBACK (empathy_dispatcher_operation_tp_file_ready_cb), self);
- return;
- }
+ EmpathyTpFile *file = empathy_tp_file_new (channel, priv->incoming);
+ priv->channel_wrapper = G_OBJECT (file);
}
ready: