aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-11-01 16:47:54 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2011-03-08 04:34:52 +0800
commitfdafabde40eced013ffdcb49e4f080542fbbc402 (patch)
treeeffe78b5b8c9c9a9fb785d74bbdac0ecc66afc79 /src
parent07202bf4e9b6f7809b58b0c3e13af0a6de593e28 (diff)
downloadgsoc2013-epiphany-fdafabde40eced013ffdcb49e4f080542fbbc402.tar
gsoc2013-epiphany-fdafabde40eced013ffdcb49e4f080542fbbc402.tar.gz
gsoc2013-epiphany-fdafabde40eced013ffdcb49e4f080542fbbc402.tar.bz2
gsoc2013-epiphany-fdafabde40eced013ffdcb49e4f080542fbbc402.tar.lz
gsoc2013-epiphany-fdafabde40eced013ffdcb49e4f080542fbbc402.tar.xz
gsoc2013-epiphany-fdafabde40eced013ffdcb49e4f080542fbbc402.tar.zst
gsoc2013-epiphany-fdafabde40eced013ffdcb49e4f080542fbbc402.zip
ephy-file-helpers: only one downloads_dir function
Remove all the ambiguity, we always throw downloads to the same place or the Desktop. Bug #618443
Diffstat (limited to 'src')
-rw-r--r--src/prefs-dialog.c34
1 files changed, 3 insertions, 31 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 7392450db..191045548 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -834,42 +834,14 @@ create_language_section (EphyDialog *dialog)
static void
download_path_changed_cb (GtkFileChooser *button)
{
- char *dir, *downloads_dir, *desktop_dir;
+ char *dir;
- /* FIXME: use _uri variant when we support downloading
- * to gnome-vfs remote locations
- */
dir = gtk_file_chooser_get_filename (button);
if (dir == NULL) return;
- downloads_dir = ephy_file_downloads_dir ();
- desktop_dir = ephy_file_desktop_dir ();
- g_return_if_fail (downloads_dir != NULL && desktop_dir != NULL);
-
- /* Check if the dir matches the default downloads_dir or desktop_dir to
- * store the english name instead of the localized one reported by the
- * two ephy_file_ functions. */
- if (strcmp (dir, downloads_dir) == 0)
- {
- g_settings_set_string (EPHY_SETTINGS_STATE,
- EPHY_PREFS_STATE_DOWNLOAD_DIR,
- _("Downloads"));
- }
- else if (strcmp (dir, desktop_dir) == 0)
- {
- g_settings_set_string (EPHY_SETTINGS_STATE,
- EPHY_PREFS_STATE_DOWNLOAD_DIR,
- _("Desktop"));
- }
- else
- {
- g_settings_set_string (EPHY_SETTINGS_STATE,
- EPHY_PREFS_STATE_DOWNLOAD_DIR, dir);
- }
-
+ g_settings_set_string (EPHY_SETTINGS_STATE,
+ EPHY_PREFS_STATE_DOWNLOAD_DIR, dir);
g_free (dir);
- g_free (downloads_dir);
- g_free (desktop_dir);
}
static void