[empathy] event-manager: allow to reject FT channels



commit f589f32173b109b4bf8ade5710ff7a8a11f9b939
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Jul 6 14:43:45 2010 +0200

    event-manager: allow to reject FT channels

 src/empathy-event-manager.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 3f53383..4c540ac 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]