diff options
author | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-01-19 08:11:35 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-01-19 08:11:35 +0800 |
commit | bc344d71c648e9985122fad66b6cab941b32f188 (patch) | |
tree | 1ceb0dfd2e6cc725894e03502dfea5282388dbb0 /src/prefs-dialog.c | |
parent | 5532d7831fe768cbf8100c84668291dc707ef1fb (diff) | |
download | gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.gz gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.bz2 gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.lz gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.xz gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.tar.zst gsoc2013-epiphany-bc344d71c648e9985122fad66b6cab941b32f188.zip |
*** empty log message ***
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r-- | src/prefs-dialog.c | 10 |
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; |