aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-02-23 14:47:21 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-02-24 23:38:07 +0800
commit2424b7418399694e059ea22699de1c0c45dab772 (patch)
treebfecacaf02e515f6edce49d22aa00eef05b0d076 /src
parent6974d3b41f80e9e43b240d4041dabfd8f80a7a95 (diff)
downloadgsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.tar
gsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.tar.gz
gsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.tar.bz2
gsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.tar.lz
gsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.tar.xz
gsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.tar.zst
gsoc2013-epiphany-2424b7418399694e059ea22699de1c0c45dab772.zip
Always use i18n'd Desktop and Downloads dir names
Otherwise preferences gets confused and also some other parts of our code put files where they shouldn't be. This was causing the default downloads destination to reset everytime the preferences dialog was opened and also causing some downloads (when "Open" is selected) to end up where they shouldn't. Bug #610721
Diffstat (limited to 'src')
-rw-r--r--src/prefs-dialog.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 6545f7cd4..d532d41f0 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -906,13 +906,16 @@ download_path_changed_cb (GtkFileChooser *button)
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)
{
- eel_gconf_set_string (CONF_STATE_DOWNLOAD_DIR, "Downloads");
+ eel_gconf_set_string (CONF_STATE_DOWNLOAD_DIR, _("Downloads"));
}
else if (strcmp (dir, desktop_dir) == 0)
{
- eel_gconf_set_string (CONF_STATE_DOWNLOAD_DIR, "Desktop");
+ eel_gconf_set_string (CONF_STATE_DOWNLOAD_DIR, _("Desktop"));
}
else
{