From 0ff13177916385b78b069c851b1b9442c57dbbb2 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 5 Feb 2009 15:19:00 +0100 Subject: 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 5d8e62b22..038e592ec 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 292df0dbf..c5a489219 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); -- cgit v1.2.3