Mercurial > geeqie.yaz
diff src/ui_pathsel.c @ 725:eda074e91ddd
Use G_DIR_SEPARATOR_S where applicable.
author | zas_ |
---|---|
date | Wed, 21 May 2008 11:00:13 +0000 |
parents | ab4162fa9209 |
children | a1dcef8cd1ae |
line wrap: on
line diff
--- a/src/ui_pathsel.c Wed May 21 10:52:38 2008 +0000 +++ b/src/ui_pathsel.c Wed May 21 11:00:13 2008 +0000 @@ -1214,7 +1214,7 @@ else { gchar *buf = remove_level_from_path(path); - if (buf && buf[0] == '/' && isdir(buf)) + if (buf && buf[0] == G_DIR_SEPARATOR && isdir(buf)) { dest_populate(dd, buf); } @@ -1223,7 +1223,7 @@ gint pos = -1; dest_populate(dd, (gchar *)homedir()); - if (path) gtk_editable_insert_text(GTK_EDITABLE(dd->entry), "/", -1, &pos); + if (path) gtk_editable_insert_text(GTK_EDITABLE(dd->entry), G_DIR_SEPARATOR_S, -1, &pos); if (path) gtk_editable_insert_text(GTK_EDITABLE(dd->entry), path, -1, &pos); } g_free(buf);