gimp r25462 - in trunk: . plug-ins/script-fu
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25462 - in trunk: . plug-ins/script-fu
- Date: Thu, 10 Apr 2008 20:38:31 +0100 (BST)
Author: neo
Date: Thu Apr 10 20:38:30 2008
New Revision: 25462
URL: http://svn.gnome.org/viewvc/gimp?rev=25462&view=rev
Log:
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).
Modified:
trunk/ChangeLog
trunk/plug-ins/script-fu/script-fu-scripts.c
Modified: trunk/plug-ins/script-fu/script-fu-scripts.c
==============================================================================
--- trunk/plug-ins/script-fu/script-fu-scripts.c (original)
+++ trunk/plug-ins/script-fu/script-fu-scripts.c Thu Apr 10 20:38:30 2008
@@ -423,17 +423,21 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]