aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 76fc406ad..c58515dee 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -255,7 +255,7 @@ EphyDialogProperty properties [] =
{ "homepage_entry", CONF_GENERAL_HOMEPAGE, PT_AUTOAPPLY, G_TYPE_STRING },
{ "homepage_current_button", NULL, PT_NORMAL, 0 },
{ "homepage_blank_button", NULL, PT_NORMAL, 0 },
- { "auto_open_downloads_checkbutton", CONF_AUTO_OPEN_DOWNLOADS, PT_AUTOAPPLY, 0 },
+ { "automatic_downloads_checkbutton", CONF_AUTO_DOWNLOADS, PT_AUTOAPPLY, 0 },
{ "download_path_button", NULL, PT_NORMAL, 0 },
/* Fonts and Colors */
@@ -1081,6 +1081,7 @@ static char*
get_download_button_label ()
{
char *label, *key, *desktop_path, *home_path, *tmp;
+ char *downloads_path;
key = eel_gconf_get_string (CONF_STATE_DOWNLOAD_DIR);
@@ -1089,6 +1090,8 @@ get_download_button_label ()
home_path = g_filename_to_utf8 (g_get_home_dir (), -1, NULL, NULL, NULL);
g_free (tmp);
+ downloads_path = g_build_filename (g_get_home_dir (), "Downloads", NULL);
+
if (g_utf8_collate (key, desktop_path) == 0)
{
g_free (key);
@@ -1103,6 +1106,11 @@ get_download_button_label ()
* filechooser */
label = g_strdup (_("Home"));
}
+ else if (g_utf8_collate (key, downloads_path) == 0)
+ {
+ g_free (key);
+ label = g_strdup (_("Downloads"));
+ }
else
{
label = key;