From 5ff22ad0d081418d823837b74d1450f7ea31efe6 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 10 Nov 2000 22:38:48 +0000 Subject: [PATCH] Use '/' instead of G_DIR_SEPARATOR. We are scanning a "preset" file here, 2000-11-11 Tor Lillqvist * 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. --- ChangeLog | 7 +++++++ plug-ins/gimpressionist/gimpressionist.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9d27c8d372..e2e1f869c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-11-11 Tor Lillqvist + + * 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 * AUTHORS diff --git a/plug-ins/gimpressionist/gimpressionist.c b/plug-ins/gimpressionist/gimpressionist.c index dcc1523aa2..8251830256 100644 --- a/plug-ins/gimpressionist/gimpressionist.c +++ b/plug-ins/gimpressionist/gimpressionist.c @@ -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; } }