Commit 62695195 authored by BST 1999 Adam D. Moss's avatar BST 1999 Adam D. Moss Committed by Adam D. Moss

Fix bizarre typo and clean up a switch.

Sun Sep 26 10:56:26 BST 1999 Adam D. Moss <adam@gimp.org>

	* app/plug-in.c: Fix bizarre typo and clean up a switch.
parent 0fac8034
Sun Sep 26 10:56:26 BST 1999 Adam D. Moss <adam@gimp.org>
* app/plug-in.c: Fix bizarre typo and clean up a switch.
Sat Sep 25 22:09:30 PDT 1999 Manish Singh <yosh@gimp.org> Sat Sep 25 22:09:30 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: version number bump * configure.in: version number bump
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }
menus_set_sensitive (proc_def->menu_path, sensitive); menus_set_sensitive (proc_def->menu_path, sensitive);
...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename) ...@@ -2146,7 +2146,7 @@ plug_in_init_file (char *filename)
if (g_strcasecmp (name, plug_in_name) == 0) if (g_strcasecmp (name, plug_in_name) == 0)
{ {
g_print ("duplicate plug-in: \"%s\" (skipping)\n"), filename; g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
return; return;
} }
......
...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1256,9 +1256,6 @@ plug_in_set_menu_sensitivity (GimpImageType type)
{ {
switch (type) switch (type)
{ {
case -1:
sensitive = FALSE;
break;
case RGB_GIMAGE: case RGB_GIMAGE:
sensitive = proc_def->image_types_val & RGB_IMAGE; sensitive = proc_def->image_types_val & RGB_IMAGE;
break; break;
...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type) ...@@ -1277,6 +1274,9 @@ plug_in_set_menu_sensitivity (GimpImageType type)
case INDEXEDA_GIMAGE: case INDEXEDA_GIMAGE:
sensitive = proc_def->image_types_val & INDEXEDA_IMAGE; sensitive = proc_def->image_types_val & INDEXEDA_IMAGE;
break; break;
default:
sensitive = FALSE;
break;
} }