Mercurial > geeqie.yaz
changeset 724:9973edfd86f6
Use g_build_filename() and G_DIR_SEPARATOR_S.
author | zas_ |
---|---|
date | Wed, 21 May 2008 10:52:38 +0000 |
parents | 7638e83fed2a |
children | eda074e91ddd |
files | src/view_dir_list.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/view_dir_list.c Wed May 21 10:46:33 2008 +0000 +++ b/src/view_dir_list.c Wed May 21 10:52:38 2008 +0000 @@ -227,9 +227,9 @@ /* add . and .. */ - if (strcmp(vd->path, "/") != 0) + if (strcmp(vd->path, G_DIR_SEPARATOR_S) != 0) { - filepath = g_strconcat(vd->path, "/", "..", NULL); + filepath = g_build_filename(vd->path, "..", NULL); fd = file_data_new_simple(filepath); VDLIST_INFO(vd, list) = g_list_prepend(VDLIST_INFO(vd, list), fd); g_free(filepath); @@ -237,7 +237,7 @@ if (options->file_filter.show_dot_directory) { - filepath = g_strconcat(vd->path, "/", ".", NULL); + filepath = g_build_filename(vd->path, ".", NULL); fd = file_data_new_simple(filepath); VDLIST_INFO(vd, list) = g_list_prepend(VDLIST_INFO(vd, list), fd); g_free(filepath);