include the procedure name in the output on stderr.

2006-10-17  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginprocedure.c
	(gimp_plug_in_procedure_set_image_types): include the procedure
	name in the output on stderr.
This commit is contained in:
Sven Neumann 2006-10-17 15:21:20 +00:00 committed by Sven Neumann
parent 3054a3a2b8
commit 035f087e48
2 changed files with 16 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2006-10-17 Sven Neumann <sven@gimp.org>
* app/plug-in/gimppluginprocedure.c
(gimp_plug_in_procedure_set_image_types): include the procedure
name in the output on stderr.
2006-10-17 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/web-browser.scm: reviewed blurbs and

View File

@ -637,7 +637,8 @@ gimp_plug_in_procedure_get_sensitive (const GimpPlugInProcedure *proc,
}
static GimpPlugInImageType
image_types_parse (const gchar *image_types)
image_types_parse (const gchar *name,
const gchar *image_types)
{
const gchar *type_spec = image_types;
GimpPlugInImageType types = 0;
@ -712,14 +713,16 @@ image_types_parse (const gchar *image_types)
}
else
{
g_printerr ("image_type contains unrecognizable parts: '%s'\n",
type_spec);
g_printerr ("%s: image-type contains unrecognizable parts:"
"'%s'\n", name, type_spec);
while (*image_types &&
((*image_types != ' ') ||
(*image_types != '\t') ||
(*image_types != ',')))
image_types++;
{
image_types++;
}
}
}
}
@ -736,9 +739,9 @@ gimp_plug_in_procedure_set_image_types (GimpPlugInProcedure *proc,
if (proc->image_types)
g_free (proc->image_types);
proc->image_types = g_strdup (image_types);
proc->image_types_val = image_types_parse (proc->image_types);
proc->image_types = g_strdup (image_types);
proc->image_types_val = image_types_parse (gimp_object_get_name (GIMP_OBJECT (proc)),
proc->image_types);
}
static GSList *