Use '/' instead of G_DIR_SEPARATOR. We are scanning a "preset" file here,

2000-11-11  Tor Lillqvist  <tml@iki.fi>

	* plug-ins/gimpressionist/gimpressionist.c (readdirintolist_real,
	reselect): Use '/' instead of G_DIR_SEPARATOR. We are scanning a
	"preset" file here, with file names always in Unix format. Thanks
	to Jean-Louis HAMEL for this fix.
This commit is contained in:
Tor Lillqvist 2000-11-10 22:38:48 +00:00 committed by Tor Lillqvist
parent 0dac10c777
commit 5ff22ad0d0
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2000-11-11 Tor Lillqvist <tml@iki.fi>
* plug-ins/gimpressionist/gimpressionist.c (readdirintolist_real,
reselect): Use '/' instead of G_DIR_SEPARATOR. We are scanning a
"preset" file here, with file names always in Unix format. Thanks
to Jean-Louis HAMEL for this fix.
Thu Nov 9 14:29:20 PST 2000 Manish Singh <yosh@gimp.org>
* AUTHORS

View File

@ -240,7 +240,7 @@ void reselect(GtkWidget *list, char *fname)
GtkWidget *tmpw;
char *tmps, *tmpfile;
tmpfile = strrchr(fname, G_DIR_SEPARATOR);
tmpfile = strrchr(fname, '/');
if(tmpfile)
fname = ++tmpfile;
@ -280,7 +280,7 @@ void readdirintolist_real(char *subdir, GtkWidget *list, char *selected)
selected = NULL;
else {
char *nsel;
nsel = strrchr(selected, G_DIR_SEPARATOR);
nsel = strrchr(selected, '/');
if(nsel) selected = ++nsel;
}
}