[gnome-games] gnometris: Use g_mkdir_with_parents()
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] gnometris: Use g_mkdir_with_parents()
- Date: Sun, 12 Jul 2009 19:21:22 +0000 (UTC)
commit 0360909d23d38832d61ac5f0383d03e9628c03f7
Author: Christian Persch <chpe gnome org>
Date: Sun Jul 12 21:06:12 2009 +0200
gnometris: Use g_mkdir_with_parents()
Bug #584814.
gnometris/tetris.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gnometris/tetris.cpp b/gnometris/tetris.cpp
index 0cdd260..3fa92fe 100644
--- a/gnometris/tetris.cpp
+++ b/gnometris/tetris.cpp
@@ -147,8 +147,7 @@ Tetris::Tetris(int cmdlLevel):
/* Locate our background image. */
outdir = g_build_filename (g_get_user_data_dir (), "gnometris", NULL);
- if (!g_file_test (outdir, G_FILE_TEST_EXISTS))
- mkdir (outdir, 0700);
+ g_mkdir_with_parents (outdir, 0700);
bgPixmap = g_build_filename (outdir, "background.bin", NULL);
g_free (outdir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]