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