]> git.0d.be Git - empathy.git/commitdiff
Recognise file transfers
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 16:12:24 +0000 (16:12 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 16:12:24 +0000 (16:12 +0000)
svn path=/trunk/; revision=2134

libempathy/empathy-dispatch-operation.c

index 7f3357b8f14e9f782c0ad6630080a678c6b713a6..7c307945238cfddf92ec484c4b4b7f2353e2e45b 100644 (file)
@@ -26,6 +26,7 @@
 #include <libempathy/empathy-enum-types.h>
 #include <libempathy/empathy-tp-chat.h>
 #include <libempathy/empathy-tp-call.h>
+#include <libempathy/empathy-tp-file.h>
 
 #include "empathy-marshal.h"
 
@@ -359,6 +360,11 @@ empathy_dispatch_operation_channel_ready_cb (TpChannel *channel,
        EmpathyTpCall *call = empathy_tp_call_new (channel);
        priv->channel_wrapper = G_OBJECT (call);
     }
+  else if (channel_type == EMP_IFACE_QUARK_CHANNEL_TYPE_FILE_TRANSFER)
+    {
+       EmpathyTpFile *file = empathy_tp_file_new (channel);
+       priv->channel_wrapper = G_OBJECT (file);
+    }
 
 out:
   empathy_dispatch_operation_set_status (self,