If image_types == NULL, register plug-in with all image_types.

Should fix bug #3135.


--Sven
This commit is contained in:
Sven Neumann 2000-01-01 21:45:26 +00:00
parent c01f1ee308
commit cca220b4ef
22 changed files with 68 additions and 21 deletions

View File

@ -1,3 +1,10 @@
Sat Jan 1 22:42:55 CET 2000 Sven Neumann <sven@gimp.org>
* app/plug-in.c: If image_types == NULL, register plug-in with
all image_types. Should fix bug #3135.
* plug-ins/webbrowser/webbrowser.c: register with image_types = NULL
Sat Jan 1 21:05:38 CET 2000 Marc Lehmann <pcg@goof.com>
* INSTALL: "strip" doc patch by Daniel Egger.

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -3102,7 +3102,9 @@ plug_in_image_types_parse (char *image_types)
int types;
if (!image_types)
return (PLUG_IN_RGB_IMAGE | PLUG_IN_GRAY_IMAGE | PLUG_IN_INDEXED_IMAGE);
return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE |
PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE |
PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE);
types = 0;

View File

@ -118,7 +118,7 @@ query ()
"Misha Dynin, Jamie Zawinski, Spencer Kimball & Peter Mattis",
"1997",
"<Toolbox>/Xtns/Web Browser/Open URL...",
"RGB*, GRAY*, INDEXED*",
NULL,
PROC_EXTENSION,
nargs, nreturn_vals,
args, return_vals);