Bug 677733 - Export image: duplicate list item for TIFF export

Don't register a second file procedure for extension-less exporting as
XMC, this approach is totally bogus. Fixes the duplicate XMC entry in
File->Export.
This commit is contained in:
Michael Natterer 2012-11-01 19:17:53 +01:00
parent 435df29d85
commit f3f72b720c
1 changed files with 12 additions and 20 deletions

View File

@ -78,8 +78,6 @@
#define LOAD_PROC "file-xmc-load"
#define LOAD_THUMB_PROC "file-xmc-load-thumb"
#define SAVE_PROC "file-xmc-save"
/* save without file extension "xmc" */
#define SAVE_PROC2 "file-xmc-save2"
#define PLUG_IN_BINARY "file-xmc"
#define PLUG_IN_ROLE "gimp-file-xmc"
@ -362,26 +360,20 @@ query (void)
gimp_register_thumbnail_loader (LOAD_PROC, LOAD_THUMB_PROC);
#define GIMP_INSTALL_SAVE_PROC(mProc, mAdd) \
gimp_install_procedure ((mProc),\
"Saves files of X11 cursor file",\
"This plug-in saves X11 Mouse Cursor (XMC) files"\
#mAdd,\
"Takeshi Matsuyama <tksmashiw@gmail.com>",\
"Takeshi Matsuyama",\
"26 May 2009",\
N_("X11 Mouse Cursor"),\
"RGBA",\
GIMP_PLUGIN,\
G_N_ELEMENTS (save_args), 0,\
save_args, NULL)
GIMP_INSTALL_SAVE_PROC(SAVE_PROC, .);
GIMP_INSTALL_SAVE_PROC(SAVE_PROC2, \nwithout file extension.);
gimp_install_procedure (SAVE_PROC,
"Saves files of X11 cursor file",
"This plug-in saves X11 Mouse Cursor (XMC) files",
"Takeshi Matsuyama <tksmashiw@gmail.com>",
"Takeshi Matsuyama",
"26 May 2009",
N_("X11 Mouse Cursor"),
"RGBA",
GIMP_PLUGIN,
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_register_file_handler_mime (SAVE_PROC, XCURSOR_MIME_TYPE);
gimp_register_save_handler (SAVE_PROC, XCURSOR_EXTENSION, "");
gimp_register_file_handler_mime (SAVE_PROC2, XCURSOR_MIME_TYPE);
}
/*
@ -467,7 +459,7 @@ run (const gchar *name,
status = GIMP_PDB_EXECUTION_ERROR;
}
}
else if (strcmp (name, SAVE_PROC) == 0 || strcmp (name, SAVE_PROC2) == 0)
else if (strcmp (name, SAVE_PROC) == 0)
{
DM_XMC("run: save %s\n", name);
run_mode = param[0].data.d_int32;