Mercurial > pidgin.yaz
changeset 9534:6f0c90000bb5
[gaim-migrate @ 10362]
Make paths behave sexier on Windows in file selector dialogs when a user
types a directory name and clicks "ok" when using a gtk < 2.4
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 15 Jul 2004 02:03:38 +0000 |
parents | 03066f174777 |
children | 075fcd9ab0f4 |
files | src/gtkutils.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkutils.c Thu Jul 15 01:59:05 2004 +0000 +++ b/src/gtkutils.c Thu Jul 15 02:03:38 2004 +0000 @@ -749,8 +749,8 @@ if (g_file_test(path, G_FILE_TEST_IS_DIR)) { /* append a / if needed */ - if (path[strlen(path) - 1] != '/') { - dirname = g_strconcat(path, "/", NULL); + if (path[strlen(path) - 1] != G_DIR_SEPARATOR) { + dirname = g_strconcat(path, G_DIR_SEPARATOR_S, NULL); } else { dirname = g_strdup(path); }