mirror of https://github.com/GNOME/gimp.git
fixed compilation on Win32 (bug #527300).
2008-04-10 Sven Neumann <sven@gimp.org> * plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script): fixed compilation on Win32 (bug #527300). svn path=/trunk/; revision=25462
This commit is contained in:
parent
5357d440e4
commit
cc57080a58
|
@ -1,3 +1,8 @@
|
||||||
|
2008-04-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
|
||||||
|
fixed compilation on Win32 (bug #527300).
|
||||||
|
|
||||||
2008-04-10 Sven Neumann <sven@gimp.org>
|
2008-04-10 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/display/gimpstatusbar.[ch] (gimp_statusbar_progress_message):
|
* app/display/gimpstatusbar.[ch] (gimp_statusbar_progress_message):
|
||||||
|
|
|
@ -423,16 +423,20 @@ script_fu_add_script (scheme *sc,
|
||||||
g_strdup (sc->vptr->string_value (sc->vptr->pair_car (a)));
|
g_strdup (sc->vptr->string_value (sc->vptr->pair_car (a)));
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
{
|
||||||
/* Replace POSIX slashes with Win32 backslashes. This
|
/* Replace POSIX slashes with Win32 backslashes. This
|
||||||
* is just so script-fus can be written with only
|
* is just so script-fus can be written with only
|
||||||
* POSIX directory separators.
|
* POSIX directory separators.
|
||||||
*/
|
*/
|
||||||
val = script->arg_defaults[i].sfa_file.filename;
|
gchar *filename = script->arg_defaults[i].sfa_file.filename;
|
||||||
while (*val)
|
|
||||||
|
while (*filename)
|
||||||
{
|
{
|
||||||
if (*val == '/')
|
if (*filename == '/')
|
||||||
*val = G_DIR_SEPARATOR;
|
*filename = G_DIR_SEPARATOR;
|
||||||
val++;
|
|
||||||
|
filename++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
script->arg_values[i].sfa_file.filename =
|
script->arg_values[i].sfa_file.filename =
|
||||||
|
|
Loading…
Reference in New Issue