diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-05-24 19:12:35 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:53:24 +0800 |
commit | f14763ece20839cb52cea4c2119503221b380a3a (patch) | |
tree | 64a5633e9432e83342fff55e30f0a23ba6d9ab62 /libempathy-gtk/empathy-ui-utils.c | |
parent | 69cf2699ca14176d12c980d8de401abf81c435c4 (diff) | |
download | gsoc2013-empathy-f14763ece20839cb52cea4c2119503221b380a3a.tar gsoc2013-empathy-f14763ece20839cb52cea4c2119503221b380a3a.tar.gz gsoc2013-empathy-f14763ece20839cb52cea4c2119503221b380a3a.tar.bz2 gsoc2013-empathy-f14763ece20839cb52cea4c2119503221b380a3a.tar.lz gsoc2013-empathy-f14763ece20839cb52cea4c2119503221b380a3a.tar.xz gsoc2013-empathy-f14763ece20839cb52cea4c2119503221b380a3a.tar.zst gsoc2013-empathy-f14763ece20839cb52cea4c2119503221b380a3a.zip |
Remove use_hash when using the file chooser
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index fef6e999f..f30c58aad 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1411,20 +1411,15 @@ file_manager_send_file_response_cb (GtkDialog *widget, GFile *file; gchar *uri; GtkRecentManager *manager; - gboolean use_hash; if (response_id == GTK_RESPONSE_OK) { file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (widget)); uri = g_file_get_uri (file); - empathy_conf_get_bool (empathy_conf_get (), - EMPATHY_PREFS_FILE_TRANSFER_USE_HASH, - &use_hash); - factory = empathy_ft_factory_dup_singleton (); empathy_ft_factory_new_transfer_outgoing (factory, contact, - file, use_hash); + file); manager = gtk_recent_manager_get_default (); gtk_recent_manager_add_item (manager, uri); @@ -1480,18 +1475,13 @@ 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)); - 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, use_hash); + (factory, handler, file); g_object_unref (factory); g_object_unref (file); |