Commit 8a46ff87 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

plug-ins/bmp/bmp.c plug-ins/common/CEL.c plug-ins/common/aa.c

2004-10-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/bmp/bmp.c
	* plug-ins/common/CEL.c
	* plug-ins/common/aa.c
	* plug-ins/common/compressor.c
	* plug-ins/common/csource.c
	* plug-ins/common/dicom.c
	* plug-ins/common/gbr.c
	* plug-ins/common/gif.c
	* plug-ins/common/gifload.c
	* plug-ins/common/gih.c
	* plug-ins/common/gtm.c
	* plug-ins/common/header.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/mng.c
	* plug-ins/common/pat.c
	* plug-ins/common/pcx.c
	* plug-ins/common/pix.c
	* plug-ins/common/png.c
	* plug-ins/common/pnm.c
	* plug-ins/common/postscript.c
	* plug-ins/common/psd.c
	* plug-ins/common/psd_save.c
	* plug-ins/common/psp.c
	* plug-ins/common/sunras.c
	* plug-ins/common/svg.c
	* plug-ins/common/tga.c
	* plug-ins/common/tiff.c
	* plug-ins/common/url.c
	* plug-ins/common/wmf.c
	* plug-ins/common/xbm.c
	* plug-ins/common/xpm.c
	* plug-ins/common/xwd.c
	* plug-ins/faxg3/faxg3.c
	* plug-ins/fits/fits.c
	* plug-ins/gfli/gfli.c
	* plug-ins/sgi/sgi.c
	* plug-ins/winicon/main.c
	* plug-ins/xjt/xjt.c: removed the calls to gimp_plugin_menu_register()
	from all plug-ins. File plug-ins don't register into a menu any longer.
parent 934734af
2004-10-28 Sven Neumann <sven@gimp.org>
* plug-ins/bmp/bmp.c
* plug-ins/common/CEL.c
* plug-ins/common/aa.c
* plug-ins/common/compressor.c
* plug-ins/common/csource.c
* plug-ins/common/dicom.c
* plug-ins/common/gbr.c
* plug-ins/common/gif.c
* plug-ins/common/gifload.c
* plug-ins/common/gih.c
* plug-ins/common/gtm.c
* plug-ins/common/header.c
* plug-ins/common/jpeg.c
* plug-ins/common/mng.c
* plug-ins/common/pat.c
* plug-ins/common/pcx.c
* plug-ins/common/pix.c
* plug-ins/common/png.c
* plug-ins/common/pnm.c
* plug-ins/common/postscript.c
* plug-ins/common/psd.c
* plug-ins/common/psd_save.c
* plug-ins/common/psp.c
* plug-ins/common/sunras.c
* plug-ins/common/svg.c
* plug-ins/common/tga.c
* plug-ins/common/tiff.c
* plug-ins/common/url.c
* plug-ins/common/wmf.c
* plug-ins/common/xbm.c
* plug-ins/common/xpm.c
* plug-ins/common/xwd.c
* plug-ins/faxg3/faxg3.c
* plug-ins/fits/fits.c
* plug-ins/gfli/gfli.c
* plug-ins/sgi/sgi.c
* plug-ins/winicon/main.c
* plug-ins/xjt/xjt.c: removed the calls to gimp_plugin_menu_register()
from all plug-ins. File plug-ins don't register into a menu any longer.
2004-10-28 Sven Neumann <sven@gimp.org>
* plug-ins/common/raw.c (query): do not install an extension for
......
......@@ -124,7 +124,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_bmp_load", "<Load>");
gimp_register_file_handler_mime ("file_bmp_load", "image/bmp");
gimp_register_magic_load_handler ("file_bmp_load",
"bmp",
......@@ -143,11 +142,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_bmp_save", "<Save>");
gimp_register_file_handler_mime ("file_bmp_save", "image/bmp");
gimp_register_save_handler ("file_bmp_save",
"bmp",
"");
gimp_register_save_handler ("file_bmp_save", "bmp", "");
}
static void
......
......@@ -116,7 +116,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_cel_load", "<Load>");
gimp_register_magic_load_handler ("file_cel_load",
"cel",
"",
......@@ -134,10 +133,7 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_cel_save", "<Save>");
gimp_register_save_handler ("file_cel_save",
"cel",
"");
gimp_register_save_handler ("file_cel_save", "cel", "");
}
static void
......
......@@ -97,11 +97,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_aa_save", "<Save>");
gimp_register_file_handler_mime ("file_aa_save", "text/plain");
gimp_register_save_handler ("file_aa_save",
"txt,ansi,text",
"");
gimp_register_save_handler ("file_aa_save", "txt,ansi,text", "");
}
/**
......
......@@ -246,7 +246,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register (compressor->load_proc, "<Load>");
gimp_register_file_handler_mime (compressor->load_proc,
compressor->mime_type);
gimp_register_magic_load_handler (compressor->load_proc,
......@@ -269,8 +268,7 @@ query (void)
gimp_register_file_handler_mime (compressor->save_proc,
compressor->mime_type);
gimp_register_save_handler (compressor->save_proc,
compressor->extensions,
"");
compressor->extensions, "");
}
}
......
......@@ -111,11 +111,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_csource_save", "<Save>");
gimp_register_file_handler_mime ("file_csource_save", "text/x-csrc");
gimp_register_save_handler ("file_csource_save",
"c",
"");
gimp_register_save_handler ("file_csource_save", "c", "");
}
static void
......
......@@ -138,7 +138,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_dicom_load", "<Load>");
gimp_register_file_handler_mime ("file_dicom_load", "image/x-dcm");
gimp_register_magic_load_handler ("file_dicom_load",
"dcm,dicom",
......@@ -163,11 +162,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_dicom_save", "<Save>");
gimp_register_file_handler_mime ("file_dicom_save", "image/x-dcm");
gimp_register_save_handler ("file_dicom_save",
"dcm,dicom",
"");
gimp_register_save_handler ("file_dicom_save", "dcm,dicom", "");
}
static void
......
......@@ -134,7 +134,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_gbr_load", "<Load>");
gimp_plugin_icon_register ("file_gbr_load",
GIMP_ICON_TYPE_STOCK_ID, GIMP_STOCK_BRUSH);
gimp_register_file_handler_mime ("file_gbr_load", "image/x-gimp-gbr");
......@@ -155,13 +154,10 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_gbr_save", "<Save>");
gimp_plugin_icon_register ("file_gbr_save",
GIMP_ICON_TYPE_STOCK_ID, GIMP_STOCK_BRUSH);
gimp_register_file_handler_mime ("file_gbr_save", "image/x-gimp-gbr");
gimp_register_save_handler ("file_gbr_save",
"gbr",
"");
gimp_register_save_handler ("file_gbr_save", "gbr", "");
}
static void
......
......@@ -405,11 +405,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_gif_save", "<Save>");
gimp_register_file_handler_mime ("file_gif_save", "image/gif");
gimp_register_save_handler ("file_gif_save",
"gif",
"");
gimp_register_save_handler ("file_gif_save", "gif", "");
}
static void
......
......@@ -147,8 +147,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_gif_load", "<Load>");
gimp_register_file_handler_mime ("file_gif_load", "image/gif");
gimp_register_magic_load_handler ("file_gif_load",
"gif",
......
......@@ -209,7 +209,6 @@ query (void)
G_N_ELEMENTS (gih_load_return_vals),
gih_load_args, gih_load_return_vals);
gimp_plugin_menu_register ("file_gih_load", "<Load>");
gimp_plugin_icon_register ("file_gih_load",
GIMP_ICON_TYPE_STOCK_ID, GIMP_STOCK_BRUSH);
gimp_register_file_handler_mime ("file_gih_load", "image/x-gimp-gih");
......@@ -230,7 +229,6 @@ query (void)
G_N_ELEMENTS (gih_save_args), 0,
gih_save_args, NULL);
gimp_plugin_menu_register ("file_gih_save", "<Save>");
gimp_plugin_icon_register ("file_gih_save",
GIMP_ICON_TYPE_STOCK_ID, GIMP_STOCK_BRUSH);
gimp_register_file_handler_mime ("file_gih_save", "image/x-gimp-gih");
......
......@@ -157,11 +157,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_gtm_save", "<Save>");
gimp_register_file_handler_mime ("file_gtm_save", "text/html");
gimp_register_save_handler ("file_gtm_save",
"html,htm",
"");
gimp_register_save_handler ("file_gtm_save", "html,htm", "");
}
static void
......
......@@ -78,11 +78,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_header_save", "<Save>");
gimp_register_file_handler_mime ("file_header_save", "text/x-chdr");
gimp_register_save_handler ("file_header_save",
"h",
"");
gimp_register_save_handler ("file_header_save", "h", "");
}
static void
......
......@@ -332,7 +332,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_jpeg_load", "<Load>");
gimp_register_file_handler_mime ("file_jpeg_load", "image/jpeg");
gimp_register_magic_load_handler ("file_jpeg_load",
"jpg,jpeg,jpe",
......@@ -351,11 +350,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_jpeg_save", "<Save>");
gimp_register_file_handler_mime ("file_jpeg_save", "image/jpeg");
gimp_register_save_handler ("file_jpeg_save",
"jpg,jpeg,jpe",
"");
gimp_register_save_handler ("file_jpeg_save", "jpg,jpeg,jpe", "");
}
static void
......
......@@ -1587,7 +1587,6 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_mng_save", "<Save>");
gimp_register_file_handler_mime ("file_mng_save", "image/x-mng");
gimp_register_save_handler ("file_mng_save", "mng", "");
}
......
......@@ -108,7 +108,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_pat_load", "<Load>");
gimp_plugin_icon_register ("file_pat_load",
GIMP_ICON_TYPE_STOCK_ID, GIMP_STOCK_PATTERN);
gimp_register_file_handler_mime ("file_pat_load", "image/x-gimp-pat");
......@@ -130,13 +129,10 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_pat_save", "<Save>");
gimp_plugin_icon_register ("file_pat_save",
GIMP_ICON_TYPE_STOCK_ID, GIMP_STOCK_PATTERN);
gimp_register_file_handler_mime ("file_pat_save", "image/x-gimp-pat");
gimp_register_save_handler ("file_pat_save",
"pat",
"");
gimp_register_save_handler ("file_pat_save", "pat", "");
}
static void
......
......@@ -100,7 +100,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_pcx_load", "<Load>");
gimp_register_file_handler_mime ("file_pcx_load", "image/x-pcx");
gimp_register_magic_load_handler ("file_pcx_load",
"pcx,pcc",
......@@ -119,11 +118,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_pcx_save", "<Save>");
gimp_register_file_handler_mime ("file_pcx_save", "image/x-pcx");
gimp_register_save_handler ("file_pcx_save",
"pcx,pcc",
"");
gimp_register_save_handler ("file_pcx_save", "pcx,pcc", "");
}
/* Declare internal functions. */
......
......@@ -145,7 +145,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_pix_load", "<Load>");
gimp_register_load_handler ("file_pix_load",
"pix,matte,mask,alpha,als",
"");
......@@ -162,10 +161,7 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_pix_save", "<Save>");
gimp_register_save_handler ("file_pix_save",
"pix,matte,mask,alpha,als",
"");
gimp_register_save_handler ("file_pix_save", "pix,matte,mask,alpha,als", "");
}
/*
......
......@@ -253,7 +253,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_png_load", "<Load>");
gimp_register_file_handler_mime ("file_png_load", "image/png");
gimp_register_magic_load_handler ("file_png_load",
"png", "", "0,string,\211PNG\r\n\032\n");
......@@ -299,7 +298,6 @@ query (void)
G_N_ELEMENTS (save_args_defaults), 0,
save_args_defaults, NULL);
gimp_plugin_menu_register ("file_png_save_defaults", "<Save>");
gimp_register_file_handler_mime ("file_png_save_defaults", "image/png");
gimp_register_save_handler ("file_png_save_defaults", "png", "");
......
......@@ -232,7 +232,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_pnm_load", "<Load>");
gimp_register_file_handler_mime ("file_pnm_load", "image/x-portable-anymap");
gimp_register_magic_load_handler ("file_pnm_load",
"pnm,ppm,pgm,pbm",
......@@ -252,11 +251,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_pnm_save", "<Save>");
gimp_register_file_handler_mime ("file_pnm_save", "image/x-portable-anymap");
gimp_register_save_handler ("file_pnm_save",
"pnm,ppm,pgm",
"");
gimp_register_save_handler ("file_pnm_save", "pnm,ppm,pgm", "");
}
static void
......
......@@ -570,7 +570,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_ps_load", "<Load>");
gimp_register_file_handler_mime ("file_ps_load", "application/postscript");
gimp_register_magic_load_handler ("file_ps_load",
"ps",
......@@ -590,7 +589,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_eps_load", "<Load>");
gimp_register_file_handler_mime ("file_eps_load", "image/x-eps");
gimp_register_magic_load_handler ("file_eps_load",
"eps",
......@@ -610,7 +608,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_pdf_load", "<Load>");
gimp_register_file_handler_mime ("file_pdf_load", "application/pdf");
gimp_register_magic_load_handler ("file_pdf_load",
"pdf",
......@@ -641,11 +638,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_ps_save", "<Save>");
gimp_register_file_handler_mime ("file_ps_save", "application/postscript");
gimp_register_save_handler ("file_ps_save",
"ps",
"");
gimp_register_save_handler ("file_ps_save", "ps", "");
gimp_install_procedure ("file_eps_save",
"save image as Encapsulated PostScript image",
......@@ -659,11 +653,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_eps_save", "<Save>");
gimp_register_file_handler_mime ("file_eps_save", "application/x-eps");
gimp_register_save_handler ("file_eps_save",
"eps",
"");
gimp_register_save_handler ("file_eps_save", "eps", "");
}
static void
......
......@@ -49,7 +49,7 @@
*
* 2004-01-01 / v3.0.11 / Daniel Rogers <dsrogers@phaseveloctiy.org>
* GIMP crashes on 0x0 layers, so we skip them.
*
*
* 2003-11-27 / v3.0.10 / Adam D. Moss
* GIMP 1.3/2.0 needs its layer/channel names to be UTF8 or it
* fails wackily, so convert the strings from the PSD file to
......@@ -435,7 +435,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_psd_load", "<Load>");
gimp_register_file_handler_mime ("file_psd_load", "image/x-psd");
gimp_register_magic_load_handler ("file_psd_load",
"psd",
......@@ -966,18 +965,18 @@ do_layer_record(FILE *fd, guint32 *offset, gint layernum)
if (layer->num_channels)
{
layer->channel = g_new(PSDchannel, layer->num_channels);
for (i = 0; i < layer->num_channels; i++)
{
PSDchannel *channel = layer->channel + i;
/* table 11-13 */
IFDBG printf("\t\t\t\tCHANNEL LENGTH INFO (%d)\n", i);
channel->type = getgshort(fd, "channel id");
(*offset)+=2;
IFDBG printf("\t\t\t\t\tChannel TYPE: %d\n", channel->type);
channel->compressedsize = getglong(fd, "channeldatalength");
(*offset)+=4;
IFDBG printf("\t\t\t\t\tChannel Data Length: %d\n",
......@@ -1795,7 +1794,7 @@ load_image (const gchar *name)
gint numc;
guchar* merged_data = NULL;
PSDlayer *layer = psd_image.layer + lnum;
/*
* since ps supports sloppy bounding boxes it is possible to
* have a 0x0 or Xx0 or 0xY layer. Gimp doesn't support a
......@@ -1808,7 +1807,7 @@ load_image (const gchar *name)
continue;
}
numc = layer->num_channels;
IFDBG printf("Hey, it's a LAYER with %d channels!\n", numc);
switch (gimagetype)
......
......@@ -184,7 +184,6 @@ query ()
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_psd_save", "<Save>");
gimp_register_file_handler_mime ("file_psd_save", "image/x-psd");
gimp_register_save_handler ("file_psd_save", "psd", "");
}
......
......@@ -366,7 +366,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_psp_load", "<Load>");
gimp_register_file_handler_mime ("file_psp_load", "image/x-psp");
gimp_register_magic_load_handler ("file_psp_load",
"psp,tub",
......@@ -389,10 +388,7 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_psp_save", "<Save>");
gimp_register_save_handler ("file_psp_save",
"psp,tub",
"");
gimp_register_save_handler ("file_psp_save", "psp,tub", "");
*/
}
......
......@@ -221,7 +221,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_sunras_load", "<Load>");
gimp_register_file_handler_mime ("file_sunras_load", "image/x-sun-raster");
gimp_register_magic_load_handler ("file_sunras_load",
"im1,im8,im24,im32,rs,ras",
......@@ -241,11 +240,9 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_sunras_save", "<Save>");
gimp_register_file_handler_mime ("file_sunras_save", "image/x-sun-raster");
gimp_register_save_handler ("file_sunras_save",
"im1,im8,im24,im32,rs,ras",
"");
"im1,im8,im24,im32,rs,ras", "");
}
......
......@@ -128,7 +128,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_svg_load", "<Load>");
gimp_register_file_handler_mime ("file_svg_load", "image/svg+xml");
gimp_register_magic_load_handler ("file_svg_load",
"svg", "",
......
......@@ -237,7 +237,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_tga_load", "<Load>");
gimp_register_file_handler_mime ("file_tga_load", "image/x-tga");
gimp_register_load_handler ("file_tga_load", "tga", "");
......@@ -253,7 +252,6 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_tga_save", "<Save>");
gimp_register_file_handler_mime ("file_tga_save", "image/x-tga");
gimp_register_save_handler ("file_tga_save", "tga", "");
}
......
......@@ -215,7 +215,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_tiff_load", "<Load>");
gimp_register_file_handler_mime ("file_tiff_load", "image/tiff");
gimp_register_magic_load_handler ("file_tiff_load",
"tif,tiff",
......@@ -236,11 +235,8 @@ query (void)
G_N_ELEMENTS (save_args_old), 0,
save_args_old, NULL);
gimp_plugin_menu_register ("file_tiff_save", "<Save>");
gimp_register_file_handler_mime ("file_tiff_save", "image/tiff");
gimp_register_save_handler ("file_tiff_save",
"tif,tiff",
"");
gimp_register_save_handler ("file_tiff_save", "tif,tiff", "");
gimp_install_procedure ("file_tiff_save2",
"saves files in the tiff file format",
......
......@@ -86,7 +86,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_url_load", "<Load>");
gimp_plugin_icon_register ("file_url_load",
GIMP_ICON_TYPE_STOCK_ID, GIMP_STOCK_WEB);
gimp_register_load_handler ("file_url_load",
......
......@@ -125,7 +125,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_wmf_load", "<Load>");
gimp_register_file_handler_mime ("file_wmf_load", "image/x-wmf");
gimp_register_magic_load_handler ("file_wmf_load",
"wmf,apm", "",
......
......@@ -173,7 +173,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_xbm_load", "<Load>");
gimp_register_file_handler_mime ("file_xbm_load", "image/x-xbitmap");
gimp_register_load_handler ("file_xbm_load",
"xbm,icon,bitmap",
......@@ -191,11 +190,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_xbm_save", "<Save>");
gimp_register_file_handler_mime ("file_xbm_save", "image/x-xbitmap");
gimp_register_save_handler ("file_xbm_save",
"xbm,icon,bitmap",
"");
gimp_register_save_handler ("file_xbm_save", "xbm,icon,bitmap", "");
}
static gchar *
......
......@@ -174,11 +174,10 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_xpm_load", "<Load>");
gimp_register_file_handler_mime ("file_xpm_load", "image/x-xpixmap");
gimp_register_magic_load_handler ("file_xpm_load",
"xpm",
"<Load>/Xpm",
"",
"0, string,/*\\040XPM\\040*/");
gimp_install_procedure ("file_xpm_save",
......@@ -199,11 +198,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_xpm_save", "<Save>");
gimp_register_file_handler_mime ("file_xpm_save", "image/x-xpixmap");
gimp_register_save_handler ("file_xpm_save",
"xpm",
"<Save>/Xpm");
gimp_register_save_handler ("file_xpm_save", "xpm", "");
}
static void
......
......@@ -281,7 +281,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_xwd_load", "<Load>");
gimp_register_file_handler_mime ("file_xwd_load", "image/x-xwindowdump");
gimp_register_magic_load_handler ("file_xwd_load",
"xwd",
......@@ -301,11 +300,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_xwd_save", "<Save>");
gimp_register_file_handler_mime ("file_xwd_save", "image/x-xwindowdump");
gimp_register_save_handler ("file_xwd_save",
"xwd",
"");
gimp_register_save_handler ("file_xwd_save", "xwd", "");
}
......
......@@ -104,7 +104,6 @@ void query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_faxg3_load", "<Load>");
gimp_register_file_handler_mime ("file_faxg3_load", "image/g3-fax");
gimp_register_magic_load_handler ("file_faxg3_load",
"g3",
......
......@@ -163,7 +163,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_fits_load", "<Load>");
gimp_register_file_handler_mime ("file_fits_load", "image/x-fits");
gimp_register_magic_load_handler ("file_fits_load",
"fit,fits",
......@@ -182,11 +181,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_fits_save", "<Save>");
gimp_register_file_handler_mime ("file_fits_save", "image/x-fits");
gimp_register_save_handler ("file_fits_save",
"fit,fits",
"");
gimp_register_save_handler ("file_fits_save", "fit,fits", "");
}
......
......@@ -163,7 +163,6 @@ query (void)
load_args,
load_return_vals);
gimp_plugin_menu_register ("file_fli_load", "<Load>");
gimp_register_file_handler_mime ("file_fli_load", "image/x-flic");
gimp_register_magic_load_handler ("file_fli_load",
"fli,flc",
......@@ -182,13 +181,11 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_fli_save", "<Save>");
gimp_register_file_handler_mime ("file_fli_save", "image/x-flic");
gimp_register_save_handler ("file_fli_save",
"fli,flc",
"");
/*
* Utility functions:
*/
......
......@@ -332,7 +332,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_menu_register ("file_jpeg_load", "<Load>");
gimp_register_file_handler_mime ("file_jpeg_load", "image/jpeg");
gimp_register_magic_load_handler ("file_jpeg_load",
"jpg,jpeg,jpe",
......@@ -351,11 +350,8 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_menu_register ("file_jpeg_save", "<Save>");
gimp_register_file_handler_mime ("file_jpeg_save", "image/jpeg");
gimp_register_save_handler ("file_jpeg_save",
"jpg,jpeg,jpe",
"");
gimp_register_save_handler ("file_jpeg_save", "jpg,jpeg,jpe", "");
}
static void
......
......@@ -332,7 +332,6 @@ query (void)
G_N_ELEMENTS (load_return_vals),