diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-02-17 20:07:06 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 17:46:05 +0200 |
commit | e5ac1f797a0e2f24f9a2412abf833dcdddf6998d (patch) | |
tree | d9a795af966434d25f677e55221296916d998a72 /libempathy/empathy-ft-factory.c | |
parent | a5440333ee18a3174acc2437e2ba1e30365b1bca (diff) |
Make libempathy compile with the new changes.
Diffstat (limited to 'libempathy/empathy-ft-factory.c')
-rw-r--r-- | libempathy/empathy-ft-factory.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/libempathy/empathy-ft-factory.c b/libempathy/empathy-ft-factory.c index 5f62f99e7..407434d68 100644 --- a/libempathy/empathy-ft-factory.c +++ b/libempathy/empathy-ft-factory.c @@ -114,6 +114,22 @@ empathy_ft_factory_init (EmpathyFTFactory *self) } static void +ft_handler_outgoing_ready_cb (EmpathyFTHandler *handler, + GError *error, + gpointer user_data) +{ + EmpathyFTFactory *factory = user_data; + + if (error != NULL) + { + /* TODO: error handling */ + return; + } + + g_signal_emit (factory, signals[NEW_FT_HANDLER], 0, handler, TRUE); +} + +static void ft_handler_incoming_ready_cb (EmpathyFTHandler *handler, GError *error, gpointer user_data) @@ -142,16 +158,12 @@ empathy_ft_factory_new_transfer (EmpathyFTFactory *factory, EmpathyContact *contact, GFile *source) { - EmpathyFTHandler *handler; - g_return_if_fail (EMPATHY_IS_FT_FACTORY (factory)); g_return_if_fail (EMPATHY_IS_CONTACT (contact)); g_return_if_fail (G_IS_FILE (source)); - handler = empathy_ft_handler_new_outgoing (contact, source); - g_signal_emit (factory, signals[NEW_FT_HANDLER], 0, handler, TRUE); - - g_object_unref (handler); + empathy_ft_handler_new_outgoing (contact, source, + ft_handler_outgoing_ready_cb, factory); } void |