[gimp] Bug 677733 - Export image: duplicate list item for TIFF export
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 677733 - Export image: duplicate list item for TIFF export
- Date: Thu, 1 Nov 2012 18:19:24 +0000 (UTC)
commit f3f72b720cd3af4511ffa4ffec51b832bf7dc62f
Author: Michael Natterer <mitch gimp org>
Date: Thu Nov 1 19:17:53 2012 +0100
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.
plug-ins/common/file-xmc.c | 32 ++++++++++++--------------------
1 files changed, 12 insertions(+), 20 deletions(-)
---
diff --git a/plug-ins/common/file-xmc.c b/plug-ins/common/file-xmc.c
index 56a07ce..7a8c9b4 100644
--- a/plug-ins/common/file-xmc.c
+++ b/plug-ins/common/file-xmc.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]