diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-09-21 21:53:44 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-09-27 21:11:27 +0800 |
commit | a3d1d0df9e007c2d59c03ecaecf19321f60151c1 (patch) | |
tree | 4167edd85317bb58972433617ad1a10d499247c6 /libempathy/empathy-client-factory.c | |
parent | 88fc949d3521c77a8ab9e86f8366f670b940bafb (diff) | |
download | gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.gz gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.bz2 gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.lz gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.xz gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.zst gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.zip |
EmpathyTpFile: inherit from TpFileTransferChannel
https://bugzilla.gnome.org/show_bug.cgi?id=658245
Diffstat (limited to 'libempathy/empathy-client-factory.c')
-rw-r--r-- | libempathy/empathy-client-factory.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy/empathy-client-factory.c b/libempathy/empathy-client-factory.c index 3794ef60d..f7529bf2e 100644 --- a/libempathy/empathy-client-factory.c +++ b/libempathy/empathy-client-factory.c @@ -24,6 +24,7 @@ #include "empathy-client-factory.h" #include "empathy-tp-chat.h" +#include "empathy-tp-file.h" #include "empathy-utils.h" #include <telepathy-yell/telepathy-yell.h> @@ -88,6 +89,11 @@ empathy_client_factory_create_channel (TpSimpleClientFactory *factory, return TP_CHANNEL (call_channel_new_with_factory ( TP_SIMPLE_CLIENT_FACTORY (factory), conn, path, properties, error)); } + else if (!tp_strdiff (chan_type, TP_IFACE_CHANNEL_TYPE_FILE_TRANSFER)) + { + return TP_CHANNEL (empathy_tp_file_new ( + TP_SIMPLE_CLIENT_FACTORY (factory), conn, path, properties, error)); + } return chainup->create_channel (factory, conn, path, properties, error); } |