added GIMP_CONFIG_ERROR_VERSION to GimpConfigError enum.

2003-11-08  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-error.h: added GIMP_CONFIG_ERROR_VERSION
	to GimpConfigError enum.

	* libgimpbase/gimpprotocol.h: renamed GP_VERSION to
	GIMP_PROTOCOL_VERSION.

	* libgimp/gimp.c
	* app/plug-in/plug-in-run.c: changed accordingly.

	* app/plug-in/plug-in-rc.[ch]: write the protocol version to the
	pluginrc and stop parsing when a wrong protocol version is found.

	* app/plug-in/plug-ins.c: pass a GError to plug_in_rc_parse().
This commit is contained in:
Sven Neumann
2003-11-07 23:47:35 +00:00
committed by Sven Neumann
parent a868b35310
commit 74c8218a3f
16 changed files with 116 additions and 45 deletions

View File

@ -1551,7 +1551,7 @@ gimp_loop (void)
static void
gimp_config (GPConfig *config)
{
if (config->version < GP_VERSION)
if (config->version < GIMP_PROTOCOL_VERSION)
{
g_message ("Could not execute plug-in \"%s\"\n(%s)\n"
"because the GIMP is using an older version of the "
@ -1559,7 +1559,7 @@ gimp_config (GPConfig *config)
g_get_prgname (), progname);
gimp_quit ();
}
else if (config->version > GP_VERSION)
else if (config->version > GIMP_PROTOCOL_VERSION)
{
g_message ("Could not execute plug-in \"%s\"\n(%s)\n"
"because it uses an obsolete version of the "