[Xfce4-commits] <midori:master> Use mkdtemp rather than GLib 2.30 g_dir_make_temp
Christian Dywan
noreply at xfce.org
Fri Nov 16 02:00:02 CET 2012
Updating branch refs/heads/master
to cd6fea57e806e5e6b65230cfa1e3769307afe044 (commit)
from ee73e9625c1427cec3466eeb03dddd32be0b72de (commit)
commit cd6fea57e806e5e6b65230cfa1e3769307afe044
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Nov 16 01:40:47 2012 +0100
Use mkdtemp rather than GLib 2.30 g_dir_make_temp
tests/browser.c | 2 +-
tests/download.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/browser.c b/tests/browser.c
index 0c24ba6..d10cfaf 100644
--- a/tests/browser.c
+++ b/tests/browser.c
@@ -52,7 +52,7 @@ browser_create (void)
view = midori_browser_get_nth_tab (browser, n);
midori_test_set_dialog_response (GTK_RESPONSE_OK);
- temporary_downloads = g_dir_make_tmp ("saveXXXXXX", NULL);
+ temporary_downloads = mkdtemp (g_strdup ("saveXXXXXX"));
temporary_filename = g_build_filename (temporary_downloads, "test.html", NULL);
midori_test_set_file_chooser_filename (temporary_filename);
midori_settings_set_download_folder (MIDORI_SETTINGS (settings), temporary_downloads);
diff --git a/tests/download.vala b/tests/download.vala
index fc213db..4b3f530 100644
--- a/tests/download.vala
+++ b/tests/download.vala
@@ -39,7 +39,7 @@ static void download_extension () {
}
static void download_unique () {
- string folder = DirUtils.make_tmp ("cacheXXXXXX");
+ string folder = "cacheXXXXXX"; DirUtils.mkdtemp (folder);
string filename = Path.build_path (Path.DIR_SEPARATOR_S, folder, "foo.png");
string org_filename = Path.build_path (Path.DIR_SEPARATOR_S, folder, "foo.png");
string unique = Midori.Download.get_unique_filename (org_filename);
More information about the Xfce4-commits
mailing list