Mercurial > geeqie.yaz
diff src/view_dir.c @ 702:e07895754e65
Drop concat_dir_and_file() and use g_build_filename() instead.
author | zas_ |
---|---|
date | Tue, 20 May 2008 22:09:04 +0000 |
parents | 905688aa2317 |
children | eda074e91ddd |
line wrap: on
line diff
--- a/src/view_dir.c Tue May 20 22:00:14 2008 +0000 +++ b/src/view_dir.c Tue May 20 22:09:04 2008 +0000 @@ -218,7 +218,7 @@ old_path = g_strdup(fd->path); base = remove_level_from_path(old_path); - new_path = concat_dir_and_file(base, new); + new_path = g_build_filename(base, new, NULL); g_free(base); if (file_util_rename_dir(fd, new_path, vd->view)) @@ -499,7 +499,7 @@ break; } - buf = concat_dir_and_file(path, _("new_folder")); + buf = g_build_filename(path, _("new_folder"), NULL); new_path = unique_filename(buf, NULL, NULL, FALSE); g_free(buf); if (!new_path) return;