diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-02-09 22:22:08 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:46:04 +0800 |
commit | 32ea1c4f65f1b38226c6a4216e9271dfbaa12879 (patch) | |
tree | 652b05adacb227e8253a3edd3ae478db67f732ec | |
parent | ea8aee8ccab439709ef69899512635662b480f5c (diff) | |
download | gsoc2013-empathy-32ea1c4f65f1b38226c6a4216e9271dfbaa12879.tar gsoc2013-empathy-32ea1c4f65f1b38226c6a4216e9271dfbaa12879.tar.gz gsoc2013-empathy-32ea1c4f65f1b38226c6a4216e9271dfbaa12879.tar.bz2 gsoc2013-empathy-32ea1c4f65f1b38226c6a4216e9271dfbaa12879.tar.lz gsoc2013-empathy-32ea1c4f65f1b38226c6a4216e9271dfbaa12879.tar.xz gsoc2013-empathy-32ea1c4f65f1b38226c6a4216e9271dfbaa12879.tar.zst gsoc2013-empathy-32ea1c4f65f1b38226c6a4216e9271dfbaa12879.zip |
Fix the build.
-rw-r--r-- | libempathy/empathy-ft-handler.c | 8 | ||||
-rw-r--r-- | libempathy/empathy-ft-handler.h | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c index 193b8d603..9c5243a91 100644 --- a/libempathy/empathy-ft-handler.c +++ b/libempathy/empathy-ft-handler.c @@ -27,6 +27,7 @@ #include "empathy-ft-handler.h" #include "empathy-dispatcher.h" +#include "empathy-marshal.h" #include "empathy-utils.h" G_DEFINE_TYPE (EmpathyFTHandler, empathy_ft_handler, G_TYPE_OBJECT) @@ -49,6 +50,7 @@ enum { TRANSFER_PROGRESS, TRANSFER_DONE, TRANSFER_ERROR, + LAST_SIGNAL }; typedef struct { @@ -75,6 +77,8 @@ typedef struct { GCancellable *cancellable; } EmpathyFTHandlerPriv; +static guint signals[LAST_SIGNAL] = { 0 }; + /* prototypes */ static void schedule_hash_chunk (HashingData *hash_data); @@ -157,7 +161,7 @@ do_dispose (GObject *object) g_object_unref (priv->cancellable); priv->cancellable = NULL; } - + G_OBJECT_CLASS (empathy_ft_handler_parent_class)->dispose (object); } @@ -217,7 +221,7 @@ empathy_ft_handler_class_init (EmpathyFTHandlerClass *klass) signals[TRANSFER_ERROR] = g_signal_new ("transfer-error", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, NULL, NULL, - g_cclosure_marshal_VOID__OBJECT_POINTER, + _empathy_marshal_VOID__OBJECT_POINTER, G_TYPE_NONE, 2, EMPATHY_TYPE_TP_FILE, G_TYPE_POINTER); diff --git a/libempathy/empathy-ft-handler.h b/libempathy/empathy-ft-handler.h index 57dcc0c89..c95e71c32 100644 --- a/libempathy/empathy-ft-handler.h +++ b/libempathy/empathy-ft-handler.h @@ -60,7 +60,8 @@ EmpathyFTHandler * empathy_ft_handler_new_outgoing (EmpathyContact *contact, GFile *source); EmpathyFTHandler * empathy_ft_handler_new_incoming (EmpathyTpFile *tp_file, GFile *destination); -void empathy_ft_handler_start_transfer (EmpathyFTHandler *handler); +void empathy_ft_handler_start_transfer (EmpathyFTHandler *handler, + GCancellable *cancellable); G_END_DECLS |