aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-07-06 20:43:45 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-07-07 16:03:37 +0800
commitf589f32173b109b4bf8ade5710ff7a8a11f9b939 (patch)
tree68489386346fda4b7f5a68de78968d17eace0248
parentc4240a8b706c62564179654af0f6e423fa27b1e0 (diff)
downloadgsoc2013-empathy-f589f32173b109b4bf8ade5710ff7a8a11f9b939.tar
gsoc2013-empathy-f589f32173b109b4bf8ade5710ff7a8a11f9b939.tar.gz
gsoc2013-empathy-f589f32173b109b4bf8ade5710ff7a8a11f9b939.tar.bz2
gsoc2013-empathy-f589f32173b109b4bf8ade5710ff7a8a11f9b939.tar.lz
gsoc2013-empathy-f589f32173b109b4bf8ade5710ff7a8a11f9b939.tar.xz
gsoc2013-empathy-f589f32173b109b4bf8ade5710ff7a8a11f9b939.tar.zst
gsoc2013-empathy-f589f32173b109b4bf8ade5710ff7a8a11f9b939.zip
event-manager: allow to reject FT channels
-rw-r--r--src/empathy-event-manager.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 3f533831d..4c540acd7 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -375,6 +375,10 @@ reject_channel_claim_cb (GObject *source,
{
empathy_tp_chat_leave (user_data);
}
+ else if (EMPATHY_IS_TP_FILE (user_data))
+ {
+ empathy_tp_file_close (user_data);
+ }
out:
g_object_unref (user_data);
@@ -868,6 +872,9 @@ approve_channels (TpSimpleApprover *approver,
else if (channel_type == TP_IFACE_QUARK_CHANNEL_TYPE_FILE_TRANSFER)
{
TpHandle handle;
+ EmpathyTpFile *tp_file = empathy_tp_file_new (channel, TRUE);
+
+ approval->handler_instance = G_OBJECT (tp_file);
handle = tp_channel_get_handle (channel, NULL);