]> git.0d.be Git - empathy.git/commitdiff
event-manager: allow to reject FT channels
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Jul 2010 12:43:45 +0000 (14:43 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 7 Jul 2010 08:03:37 +0000 (10:03 +0200)
src/empathy-event-manager.c

index 3f533831de7213ba4c0421fe5b5bf633d5a70fe8..4c540acd7bf953988083b910f468e558d07e7f8b 100644 (file)
@@ -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);