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,17 +423,21 @@ 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
|
{
|
||||||
* is just so script-fus can be written with only
|
/* Replace POSIX slashes with Win32 backslashes. This
|
||||||
* POSIX directory separators.
|
* is just so script-fus can be written with only
|
||||||
*/
|
* POSIX directory separators.
|
||||||
val = script->arg_defaults[i].sfa_file.filename;
|
*/
|
||||||
while (*val)
|
gchar *filename = script->arg_defaults[i].sfa_file.filename;
|
||||||
{
|
|
||||||
if (*val == '/')
|
while (*filename)
|
||||||
*val = G_DIR_SEPARATOR;
|
{
|
||||||
val++;
|
if (*filename == '/')
|
||||||
}
|
*filename = G_DIR_SEPARATOR;
|
||||||
|
|
||||||
|
filename++;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
script->arg_values[i].sfa_file.filename =
|
script->arg_values[i].sfa_file.filename =
|
||||||
g_strdup (script->arg_defaults[i].sfa_file.filename);
|
g_strdup (script->arg_defaults[i].sfa_file.filename);
|
||||||
|
|
Loading…
Reference in New Issue