don't load script-fu-compat.init here.
2006-10-19 Sven Neumann <sven@gimp.org> * plug-ins/script-fu/scripts/script-fu.init: don't load script-fu-compat.init here. * plug-ins/script-fu/scheme-wrapper.c (tinyscheme_init): load it here, from the same place where script-fu.init was found. * plug-ins/script-fu/script-fu-interface.c: made the code more robust against invalid adjustment types.
This commit is contained in:
committed by
Sven Neumann
parent
c97fc7a7a5
commit
a92d405849
@ -333,6 +333,21 @@ tinyscheme_init (const gchar *path,
|
||||
{
|
||||
scheme_load_file (&sc, fin);
|
||||
fclose (fin);
|
||||
|
||||
/* To improve compatibility with older Script-Fu scripts,
|
||||
* load script-fu-compat.init from the same directory.
|
||||
*/
|
||||
filename = g_build_filename (list->data,
|
||||
"script-fu-compat.init", NULL);
|
||||
fin = g_fopen (filename, "rb");
|
||||
g_free (filename);
|
||||
|
||||
if (fin)
|
||||
{
|
||||
scheme_load_file (&sc, fin);
|
||||
fclose (fin);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user