mirror of https://github.com/GNOME/gimp.git
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:
parent
0dac10c777
commit
5ff22ad0d0
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue