diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-05-13 21:02:16 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:49:56 +0800 |
commit | 872178334e6171c60b5bcf1cede7ae5a36645da1 (patch) | |
tree | 08eb889157773a04419ae5e688da35aa38eba0e6 /libempathy-gtk | |
parent | 46881a51c2c317d482de1889ad29f3e58a0cfe10 (diff) | |
download | gsoc2013-empathy-872178334e6171c60b5bcf1cede7ae5a36645da1.tar gsoc2013-empathy-872178334e6171c60b5bcf1cede7ae5a36645da1.tar.gz gsoc2013-empathy-872178334e6171c60b5bcf1cede7ae5a36645da1.tar.bz2 gsoc2013-empathy-872178334e6171c60b5bcf1cede7ae5a36645da1.tar.lz gsoc2013-empathy-872178334e6171c60b5bcf1cede7ae5a36645da1.tar.xz gsoc2013-empathy-872178334e6171c60b5bcf1cede7ae5a36645da1.tar.zst gsoc2013-empathy-872178334e6171c60b5bcf1cede7ae5a36645da1.zip |
Add use_hash params for incoming transfers
Add use_hash params for incoming transfers to the FT Factory and
Handler, so that we will use them to check hash for received files.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 3ea3e76aa..29c3b600f 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1481,13 +1481,19 @@ file_manager_receive_file_response_cb (GtkDialog *dialog, { EmpathyFTFactory *factory; GFile *file; + gboolean use_hash; if (response == GTK_RESPONSE_OK) { factory = empathy_ft_factory_dup_singleton (); file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (dialog)); + use_hash = empathy_conf_get_bool + (empathy_conf_get (), + EMPATHY_PREFS_FILE_TRANSFER_USE_HASH, + &use_hash); + empathy_ft_factory_set_destination_for_incoming_handler - (factory, handler, file); + (factory, handler, file, use_hash); g_object_unref (factory); g_object_unref (file); |