[empathy: 6/148] Fix the build.



commit 0ff13177916385b78b069c851b1b9442c57dbbb2
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date:   Thu Feb 5 15:19:00 2009 +0100

    Fix the build.
---
 libempathy/empathy-ft-factory.c |    2 +-
 libempathy/empathy-ft-handler.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/libempathy/empathy-ft-factory.c b/libempathy/empathy-ft-factory.c
index 5d8e62b..038e592 100644
--- a/libempathy/empathy-ft-factory.c
+++ b/libempathy/empathy-ft-factory.c
@@ -132,7 +132,7 @@ empathy_ft_factory_new_transfer (EmpathyFTFactory *factory,
   g_return_if_fail (EMPATHY_IS_CONTACT (contact));
   g_return_if_fail (G_IS_FILE (file));
 
-  handler = empathy_ft_handler_new (contact, file);
+  handler = empathy_ft_handler_new_outgoing (contact, file);
   g_signal_emit (factory, signals[NEW_FT_HANDLER], 0, handler, TRUE);
 
   g_object_unref (handler);
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 292df0d..c5a4892 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -597,7 +597,7 @@ empathy_ft_handler_new_outgoing (EmpathyContact *contact,
                                  GFile *source)
 {
   g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
-  g_return_val_if_fail (G_IS_FILE (file), NULL);
+  g_return_val_if_fail (G_IS_FILE (source), NULL);
 
   return g_object_new (EMPATHY_TYPE_FT_HANDLER,
       "contact", contact, "gfile", source, NULL);
@@ -607,7 +607,8 @@ EmpathyFTHandler *
 empathy_ft_handler_new_incoming (EmpathyTpFile *tp_file,
                                  GFile *destination)
 {
-  g_return_val_if_fail (EMPATHY_IS_TP_FILE (file), NULL);
+  g_return_val_if_fail (EMPATHY_IS_TP_FILE (tp_file), NULL);
+  g_return_val_if_fail (G_IS_FILE (destination), NULL);
 
   return g_object_new (EMPATHY_TYPE_FT_HANDLER,
       "tp-file", tp_file, "gfile", destination, NULL);



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