From 92778cc0fa77a252763dee87ed1f95f9c7e95cb1 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 17 Feb 2009 12:03:58 +0100 Subject: W.I.P. for heavy lifting on EmpathyTpFile. --- src/empathy.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/empathy.c') diff --git a/src/empathy.c b/src/empathy.c index cc9103cb1..c588fd9e7 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -50,6 +50,7 @@ #include #include #include +#include #include #include @@ -128,16 +129,11 @@ dispatch_cb (EmpathyDispatcher *dispatcher, factory = empathy_call_factory_get (); empathy_call_factory_claim_channel (factory, operation); - } else if (channel_type == TP_IFACE_QUARK_CHANNEL_TYPE_FILE_TRANSFER) { - EmpathyFTManager *ft_manager; - EmpathyTpFile *tp_file; + } else if (channel_type == EMP_IFACE_QUARK_CHANNEL_TYPE_FILE_TRANSFER) { + EmpathyFTFactory *factory; - ft_manager = empathy_ft_manager_dup_singleton (); - tp_file = EMPATHY_TP_FILE ( - empathy_dispatch_operation_get_channel_wrapper (operation)); - empathy_ft_manager_add_tp_file (ft_manager, tp_file); - empathy_dispatch_operation_claim (operation); - g_object_unref (ft_manager); + factory = empathy_ft_factory_dup_singleton (); + empathy_ft_factory_claim_channel (factory, operation, NULL); } } -- cgit v1.2.3