Commit 3ebaf638 authored by Sven Neumann's avatar Sven Neumann
Browse files

Redid my latest change here, since it didn't solve the problem. Now,

* app/plug_in.c: Redid my latest change here, since it didn't solve
  the problem. Now, registering with image_types == NULL means the same
  as what "" used to mean: No image is required and the menu entry will
  always be sensitive.

The rest are fixes to my last commit.


--Sven
parent 05bdf343
Sun Jan 2 21:46:46 CET 2000 Sven Neumann <sven@gimp.org>
* app/plug_in.c: Redid my latest change here, since it didn't solve
the problem. Now, registering with image_types == NULL means the same
as what "" used to mean: No image is required and the menu entry will
always be sensitive.
* plug-ins/script-fu/script-fu.c
* plug-ins/gap/gap_decode_mpeg_main.c
* plug-ins/gap/gap_frontends_main.c
* plug-ins/gap/gap_mpege.c: Use NULL instead of the empty string
when registering the image_types.
2000-01-02 Kelly Lynn Martin <kelly@poverty.bloomington.in.us>
 
* configure.in: bumped GTK req. to 1.2.6 -- I hadn't updated GTK
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
......@@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args,
int
plug_in_image_types_parse (char *image_types)
{
int types;
int types = 0;
/*
* If the plug_in registers with image_type == NULL or "", return 0
* By doing so it won't be touched by plug_in_set_menu_sensitivity()
*/
if (!image_types)
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;
return types;
while (*image_types)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment