diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-02-05 22:19:00 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:46:04 +0800 |
commit | 0ff13177916385b78b069c851b1b9442c57dbbb2 (patch) | |
tree | df4f1352247028ea1423bd1d07d28390c4002adf | |
parent | 0390c52061551390ea77877700c18e7ae57afc08 (diff) | |
download | gsoc2013-empathy-0ff13177916385b78b069c851b1b9442c57dbbb2.tar gsoc2013-empathy-0ff13177916385b78b069c851b1b9442c57dbbb2.tar.gz gsoc2013-empathy-0ff13177916385b78b069c851b1b9442c57dbbb2.tar.bz2 gsoc2013-empathy-0ff13177916385b78b069c851b1b9442c57dbbb2.tar.lz gsoc2013-empathy-0ff13177916385b78b069c851b1b9442c57dbbb2.tar.xz gsoc2013-empathy-0ff13177916385b78b069c851b1b9442c57dbbb2.tar.zst gsoc2013-empathy-0ff13177916385b78b069c851b1b9442c57dbbb2.zip |
Fix the build.
-rw-r--r-- | libempathy/empathy-ft-factory.c | 2 | ||||
-rw-r--r-- | 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); |