aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-01-25 08:38:47 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-01-25 08:38:47 +0800
commitf7be5f2113a67ae741146181bc163e63f027297d (patch)
tree70382299467598663e02436011701a6364cbd7ce /lib/ephy-file-helpers.c
parent8b723af53aa4bd4b45f68f4035afd08091aecee4 (diff)
downloadgsoc2013-epiphany-f7be5f2113a67ae741146181bc163e63f027297d.tar
gsoc2013-epiphany-f7be5f2113a67ae741146181bc163e63f027297d.tar.gz
gsoc2013-epiphany-f7be5f2113a67ae741146181bc163e63f027297d.tar.bz2
gsoc2013-epiphany-f7be5f2113a67ae741146181bc163e63f027297d.tar.lz
gsoc2013-epiphany-f7be5f2113a67ae741146181bc163e63f027297d.tar.xz
gsoc2013-epiphany-f7be5f2113a67ae741146181bc163e63f027297d.tar.zst
gsoc2013-epiphany-f7be5f2113a67ae741146181bc163e63f027297d.zip
Add a way to get the downloads dir with a comment for translators. Use dir
2004-01-25 Marco Pesenti Gritti <marco@gnome.org> * lib/ephy-file-helpers.c: (ephy_file_tmp_dir), (ephy_file_downloads_dir): * lib/ephy-file-helpers.h: Add a way to get the downloads dir with a comment for translators. Use dir instead of directory consistently with the other functions. * embed/mozilla/MozDownload.cpp: * src/prefs-dialog.c: (get_download_button_label): * src/window-commands.c: (save_temp_source): Use the helper.
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r--lib/ephy-file-helpers.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index f58ac40e0..7bb1fbeae 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -39,7 +39,7 @@ static char *tmp_dir = NULL;
static GList *del_on_exit = NULL;
const char *
-ephy_file_tmp_directory (void)
+ephy_file_tmp_dir (void)
{
if (tmp_dir == NULL)
{
@@ -60,6 +60,18 @@ ephy_file_tmp_directory (void)
}
char *
+ephy_file_downloads_dir (void)
+{
+ const char *translated_folder;
+
+ /* The name of the default downloads folder */
+ translated_folder = _("Downloads");
+
+ return g_build_filename (g_get_home_dir (), "Desktop",
+ translated_folder, NULL);
+}
+
+char *
ephy_file_tmp_filename (const char *base,
const char *extension)
{