Commit 310e8c67 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

plug-ins/common/papertile.c plug-ins/common/pat.c plug-ins/common/pcx.c

2005-08-15  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/papertile.c
	* plug-ins/common/pat.c
	* plug-ins/common/pcx.c
	* plug-ins/common/photocopy.c
	* plug-ins/common/pix.c
	* plug-ins/common/pixelize.c
	* plug-ins/common/plasma.c
	* plug-ins/common/plugin-browser.c
	* plug-ins/common/png.c
	* plug-ins/common/polar.c
	* plug-ins/common/procedure-browser.c
	* plug-ins/common/psd.c
	* plug-ins/common/psd_save.c
	* plug-ins/common/psp.c: canonicalize procedure and
	parameter names. Misc cleanups.
parent 31d6857d
2005-08-15 Michael Natterer <mitch@gimp.org>
* plug-ins/common/papertile.c
* plug-ins/common/pat.c
* plug-ins/common/pcx.c
* plug-ins/common/photocopy.c
* plug-ins/common/pix.c
* plug-ins/common/pixelize.c
* plug-ins/common/plasma.c
* plug-ins/common/plugin-browser.c
* plug-ins/common/png.c
* plug-ins/common/polar.c
* plug-ins/common/procedure-browser.c
* plug-ins/common/psd.c
* plug-ins/common/psd_save.c
* plug-ins/common/psp.c: canonicalize procedure and
parameter names. Misc cleanups.
2005-08-15 Michael Natterer <mitch@gimp.org>
* plug-ins/common/poppler.c: make sure the opened image has a
......
......@@ -34,8 +34,8 @@
/* DEFINES */
/*===========================================================================*/
#define PLUGIN_PROCEDURE_NAME "plug_in_papertile"
#define HELP_ID "plug-in-papertile"
#define PLUG_IN_PROC "plug-in-papertile"
#define PLUG_IN_BINARY "papertile"
/*===========================================================================*/
/* TYPES */
......@@ -125,13 +125,13 @@ static struct
static void
params_save_to_gimp (void)
{
gimp_set_data (PLUGIN_PROCEDURE_NAME, &p.params, sizeof p.params);
gimp_set_data (PLUG_IN_PROC, &p.params, sizeof p.params);
}
static void
params_load_from_gimp (void)
{
gimp_get_data (PLUGIN_PROCEDURE_NAME, &p.params);
gimp_get_data (PLUG_IN_PROC, &p.params);
if (0 < p.params.division_x)
{
......@@ -229,11 +229,11 @@ open_dialog (void)
GtkWidget *frame;
GtkWidget *color_button;
gimp_ui_init ("papertile", TRUE);
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Paper Tile"), "papertile",
dialog = gimp_dialog_new (_("Paper Tile"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, HELP_ID,
gimp_standard_help_func, PLUG_IN_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -241,9 +241,9 @@ open_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
main_hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_hbox), 12);
......@@ -793,23 +793,22 @@ filter (void)
static void
plugin_query (void)
{
static GimpParamDef args[] =
static GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run_mode", "run mode" },
{ GIMP_PDB_IMAGE, "image", "input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "input drawable" },
{ GIMP_PDB_INT32, "tile_size", "tile size (pixels)" },
{ GIMP_PDB_FLOAT, "move_max", "max move rate (%)" },
{ GIMP_PDB_INT32, "fractional_type", "0:Background 1:Ignore 2:Force" },
{ GIMP_PDB_INT32, "wrap_around", "wrap around (bool)" },
{ GIMP_PDB_INT32, "centering", "centering (bool)" },
{ GIMP_PDB_INT32, "background_type",
"0:Transparent 1:Inverted 2:Image? 3:FG 4:BG 5:Color" },
{ GIMP_PDB_INT32, "background_color", "background color (for bg-type 5)" },
{ GIMP_PDB_INT32, "background_alpha", "opacity (for bg-type 5)" }
{ GIMP_PDB_INT32, "run-mode", "run mode" },
{ GIMP_PDB_IMAGE, "image", "input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "input drawable" },
{ GIMP_PDB_INT32, "tile-size", "tile size (pixels)" },
{ GIMP_PDB_FLOAT, "move-max", "max move rate (%)" },
{ GIMP_PDB_INT32, "fractional-type", "0:Background 1:Ignore 2:Force" },
{ GIMP_PDB_INT32, "wrap-around", "wrap around (bool)" },
{ GIMP_PDB_INT32, "centering", "centering (bool)" },
{ GIMP_PDB_INT32, "background-type", "0:Transparent 1:Inverted 2:Image? 3:FG 4:BG 5:Color" },
{ GIMP_PDB_INT32, "background-color", "background color (for bg-type 5)" },
{ GIMP_PDB_INT32, "background-alpha", "opacity (for bg-type 5)" }
};
gimp_install_procedure (PLUGIN_PROCEDURE_NAME,
gimp_install_procedure (PLUG_IN_PROC,
"Cuts an image into paper tiles, and slides each "
"paper tile.",
"This plug-in cuts an image into paper tiles and "
......@@ -823,7 +822,7 @@ plugin_query (void)
G_N_ELEMENTS (args), 0,
args, NULL);
gimp_plugin_menu_register (PLUGIN_PROCEDURE_NAME, "<Image>/Filters/Map");
gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Map");
}
static void
......
......@@ -34,6 +34,13 @@
#endif
#include <glib/gstdio.h>
#ifdef G_OS_WIN32
#include <libgimpbase/gimpwin32-io.h>
#endif
#ifndef _O_BINARY
#define _O_BINARY 0
#endif
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
......@@ -43,13 +50,9 @@
#include "libgimp/stdplugins-intl.h"
#ifdef G_OS_WIN32
#include <io.h>
#endif
#ifndef _O_BINARY
#define _O_BINARY 0
#endif
#define LOAD_PROC "file-pat-load"
#define SAVE_PROC "file-pat-save"
#define PLUG_IN_BINARY "pat"
/* local function prototypes */
......@@ -91,9 +94,9 @@ query (void)
{
static GimpParamDef load_args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
{ GIMP_PDB_STRING, "filename", "The name of the file to load" },
{ GIMP_PDB_STRING, "raw_filename", "The name of the file to load" }
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_STRING, "filename", "The name of the file to load" },
{ GIMP_PDB_STRING, "raw-filename", "The name of the file to load" }
};
static GimpParamDef load_return_vals[] =
{
......@@ -102,15 +105,15 @@ query (void)
static GimpParamDef save_args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" },
{ GIMP_PDB_STRING, "filename", "The name of the file to save the image in" },
{ GIMP_PDB_STRING, "raw_filename", "The name of the file to save the image in" },
{ GIMP_PDB_STRING, "description", "Short description of the pattern" },
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" },
{ GIMP_PDB_STRING, "filename", "The name of the file to save the image in" },
{ GIMP_PDB_STRING, "raw-filename", "The name of the file to save the image in" },
{ GIMP_PDB_STRING, "description", "Short description of the pattern" }
};
gimp_install_procedure ("file_pat_load",
gimp_install_procedure (LOAD_PROC,
"Loads Gimp's .PAT pattern files",
"The images in the pattern dialog can be loaded "
"directly with this plug-in",
......@@ -124,16 +127,16 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_plugin_icon_register ("file_pat_load",
gimp_plugin_icon_register (LOAD_PROC,
GIMP_ICON_TYPE_STOCK_ID,
(const guchar *) GIMP_STOCK_PATTERN);
gimp_register_file_handler_mime ("file_pat_load", "image/x-gimp-pat");
gimp_register_magic_load_handler ("file_pat_load",
gimp_register_file_handler_mime (LOAD_PROC, "image/x-gimp-pat");
gimp_register_magic_load_handler (LOAD_PROC,
"pat",
"",
"20,string,GPAT");
gimp_install_procedure ("file_pat_save",
gimp_install_procedure (SAVE_PROC,
"Saves Gimp pattern file (.PAT)",
"New Gimp patterns can be created by saving them "
"in the appropriate place with this plug-in.",
......@@ -146,11 +149,11 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_plugin_icon_register ("file_pat_save",
gimp_plugin_icon_register (SAVE_PROC,
GIMP_ICON_TYPE_STOCK_ID,
(const guchar *) 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_file_handler_mime (SAVE_PROC, "image/x-gimp-pat");
gimp_register_save_handler (SAVE_PROC, "pat", "");
}
static void
......@@ -177,7 +180,7 @@ run (const gchar *name,
INIT_I18N ();
if (strcmp (name, "file_pat_load") == 0)
if (strcmp (name, LOAD_PROC) == 0)
{
image_ID = load_image (param[1].data.d_string);
......@@ -192,7 +195,7 @@ run (const gchar *name,
status = GIMP_PDB_EXECUTION_ERROR;
}
}
else if (strcmp (name, "file_pat_save") == 0)
else if (strcmp (name, SAVE_PROC) == 0)
{
GimpParasite *parasite;
gint32 orig_image_ID;
......@@ -206,7 +209,7 @@ run (const gchar *name,
{
case GIMP_RUN_INTERACTIVE:
case GIMP_RUN_WITH_LAST_VALS:
gimp_ui_init ("pat", FALSE);
gimp_ui_init (PLUG_IN_BINARY, FALSE);
export = gimp_export_image (&image_ID, &drawable_ID, "PAT",
GIMP_EXPORT_CAN_HANDLE_GRAY |
GIMP_EXPORT_CAN_HANDLE_RGB |
......@@ -218,7 +221,7 @@ run (const gchar *name,
}
/* Possibly retrieve data */
gimp_get_data ("file_pat_save", description);
gimp_get_data (SAVE_PROC, description);
break;
default:
......@@ -264,7 +267,7 @@ run (const gchar *name,
{
if (save_image (param[3].data.d_string, image_ID, drawable_ID))
{
gimp_set_data ("file_pat_save", description, sizeof (description));
gimp_set_data (SAVE_PROC, description, sizeof (description));
}
else
{
......@@ -513,9 +516,9 @@ save_dialog (void)
GtkWidget *entry;
gboolean run;
dlg = gimp_dialog_new (_("Save as Pattern"), "pat",
dlg = gimp_dialog_new (_("Save as Pattern"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, "file-pat-save",
gimp_standard_help_func, SAVE_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -523,9 +526,9 @@ save_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
/* The main table */
table = gtk_table_new (1, 2, FALSE);
......
......@@ -33,14 +33,10 @@
#include "libgimp/stdplugins-intl.h"
/* Declare plug-in functions. */
#define LOAD_PROC "file-pcx-load"
#define SAVE_PROC "file-pcx-save"
#define PLUG_IN_BINARY "pcx"
static void query (void);
static void run (const gchar *name,
gint nparams,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals);
#if G_BYTE_ORDER == G_BIG_ENDIAN
#define qtohl(x) \
......@@ -58,6 +54,57 @@ static void run (const gchar *name,
#define htoql(x) qtohl(x)
#define htoqs(x) qtohs(x)
/* Declare loacl functions. */
static void query (void);
static void run (const gchar *name,
gint nparams,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals);
static gint32 load_image (const gchar *filename);
static void load_1 (FILE *fp,
gint width,
gint height,
guchar *buffer,
gint bytes);
static void load_4 (FILE *fp,
gint width,
gint height,
guchar *buffer,
gint bytes);
static void load_8 (FILE *fp,
gint width,
gint height,
guchar *buffer,
gint bytes);
static void load_24 (FILE *fp,
gint width,
gint height,
guchar *buffer,
gint bytes);
static void readline (FILE *fp,
guchar *buffer,
gint bytes);
static gint save_image (const gchar *filename,
gint32 image,
gint32 layer);
static void save_8 (FILE *fp,
gint width,
gint height,
guchar *buffer);
static void save_24 (FILE *fp,
gint width,
gint height,
guchar *buffer);
static void writeline (FILE *fp,
guchar *buffer,
gint bytes);
GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
......@@ -73,9 +120,9 @@ query (void)
{
static GimpParamDef load_args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
{ GIMP_PDB_STRING, "filename", "The name of the file to load" },
{ GIMP_PDB_STRING, "raw_filename", "The name entered" }
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_STRING, "filename", "The name of the file to load" },
{ GIMP_PDB_STRING, "raw-filename", "The name entered" }
};
static GimpParamDef load_return_vals[] =
{
......@@ -84,14 +131,14 @@ query (void)
static GimpParamDef save_args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" },
{ GIMP_PDB_STRING, "filename", "The name of the file to save the image in" },
{ GIMP_PDB_STRING, "raw_filename", "The name entered" }
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" },
{ GIMP_PDB_STRING, "filename", "The name of the file to save the image in" },
{ GIMP_PDB_STRING, "raw-filename", "The name entered" }
};
gimp_install_procedure ("file_pcx_load",
gimp_install_procedure (LOAD_PROC,
"Loads files in Zsoft PCX file format",
"FIXME: write help for pcx_load",
"Francisco Bustamante & Nick Lamb",
......@@ -104,13 +151,13 @@ query (void)
G_N_ELEMENTS (load_return_vals),
load_args, load_return_vals);
gimp_register_file_handler_mime ("file_pcx_load", "image/x-pcx");
gimp_register_magic_load_handler ("file_pcx_load",
gimp_register_file_handler_mime (LOAD_PROC, "image/x-pcx");
gimp_register_magic_load_handler (LOAD_PROC,
"pcx,pcc",
"",
"0&,byte,10,2&,byte,1,3&,byte,>0,3,byte,<9");
gimp_install_procedure ("file_pcx_save",
gimp_install_procedure (SAVE_PROC,
"Saves files in ZSoft PCX file format",
"FIXME: write help for pcx_save",
"Francisco Bustamante & Nick Lamb",
......@@ -122,54 +169,10 @@ query (void)
G_N_ELEMENTS (save_args), 0,
save_args, NULL);
gimp_register_file_handler_mime ("file_pcx_save", "image/x-pcx");
gimp_register_save_handler ("file_pcx_save", "pcx,pcc", "");
gimp_register_file_handler_mime (SAVE_PROC, "image/x-pcx");
gimp_register_save_handler (SAVE_PROC, "pcx,pcc", "");
}
/* Declare internal functions. */
static gint32 load_image (const gchar *filename);
static void load_1 (FILE *fp,
gint width,
gint height,
guchar *buffer,
gint bytes);
static void load_4 (FILE *fp,
gint width,
gint height,
guchar *buffer,
gint bytes);
static void load_8 (FILE *fp,
gint width,
gint height,
guchar *buffer,
gint bytes);
static void load_24 (FILE *fp,
gint width,
gint height,
guchar *buffer,
gint bytes);
static void readline (FILE *fp,
guchar *buffer,
gint bytes);
static gint save_image (const gchar *filename,
gint32 image,
gint32 layer);
static void save_8 (FILE *fp,
gint width,
gint height,
guchar *buffer);
static void save_24 (FILE *fp,
gint width,
gint height,
guchar *buffer);
static void writeline (FILE *fp,
guchar *buffer,
gint bytes);
/* Plug-in implementation */
static void
run (const gchar *name,
gint nparams,
......@@ -190,10 +193,11 @@ run (const gchar *name,
*nreturn_vals = 1;
*return_vals = values;
values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR;
if (strcmp (name, "file_pcx_load") == 0)
if (strcmp (name, LOAD_PROC) == 0)
{
image_ID = load_image (param[1].data.d_string);
......@@ -208,7 +212,7 @@ run (const gchar *name,
status = GIMP_PDB_EXECUTION_ERROR;
}
}
else if (strcmp (name, "file_pcx_save") == 0)
else if (strcmp (name, SAVE_PROC) == 0)
{
image_ID = param[1].data.d_int32;
drawable_ID = param[2].data.d_int32;
......@@ -218,7 +222,7 @@ run (const gchar *name,
{
case GIMP_RUN_INTERACTIVE:
case GIMP_RUN_WITH_LAST_VALS:
gimp_ui_init ("pcx", FALSE);
gimp_ui_init (PLUG_IN_BINARY, FALSE);
export = gimp_export_image (&image_ID, &drawable_ID, "PCX",
(GIMP_EXPORT_CAN_HANDLE_RGB |
GIMP_EXPORT_CAN_HANDLE_GRAY |
......@@ -292,12 +296,12 @@ static struct
static gint32
load_image (const gchar *filename)
{
FILE *fd;
FILE *fd;
GimpDrawable *drawable;
GimpPixelRgn pixel_rgn;
gint offset_x, offset_y, height, width;
gint32 image, layer;
guchar *dest, cmap[768];
GimpPixelRgn pixel_rgn;
gint offset_x, offset_y, height, width;
gint32 image, layer;
guchar *dest, cmap[768];
fd = g_fopen (filename, "rb");
if (!fd)
......@@ -528,13 +532,14 @@ save_image (const gchar *filename,
gint32 image,
gint32 layer)
{
FILE *fp;
GimpPixelRgn pixel_rgn;
GimpDrawable *drawable;
GimpImageType drawable_type;
guchar *cmap= NULL, *pixels;
gint offset_x, offset_y, width, height;
int colors, i;
FILE *fp;
GimpPixelRgn pixel_rgn;
GimpDrawable *drawable;
GimpImageType drawable_type;
guchar *cmap= NULL;
guchar *pixels;
gint offset_x, offset_y, width, height;
gint colors, i;
drawable = gimp_drawable_get (layer);
drawable_type = gimp_drawable_type (layer);
......
......@@ -36,10 +36,13 @@
/* Some useful macros */
#define PLUG_IN_PROC "plug-in-photocopy"
#define PLUG_IN_BINARY "photocopy"
#define TILE_CACHE_SIZE 48
#define GAMMA 1.0
#define EPSILON 2
typedef struct
{
gdouble mask_radius;
......@@ -118,13 +121,13 @@ query (void)
{
static GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image (unused)" },
{ GIMP_PDB_DRAWABLE, "drawable", "Input drawable" },
{ GIMP_PDB_FLOAT, "mask_radius", "Photocopy mask radius (radius of pixel neighborhood)" },
{ GIMP_PDB_FLOAT, "mask-radius", "Photocopy mask radius (radius of pixel neighborhood)" },
{ GIMP_PDB_FLOAT, "sharpness", "Sharpness (detail level) (0.0 - 1.0)" },
{ GIMP_PDB_FLOAT, "pct_black", "Percentage of darkened pixels to set to black (0.0 - 1.0)" },
{ GIMP_PDB_FLOAT, "pct_white", "Percentage of non-darkened pixels left white (0.0 - 1.0)" }
{ GIMP_PDB_FLOAT, "pct-black", "Percentage of darkened pixels to set to black (0.0 - 1.0)" },
{ GIMP_PDB_FLOAT, "pct-white", "Percentage of non-darkened pixels left white (0.0 - 1.0)" }
};
gchar *help_string =
......@@ -148,7 +151,7 @@ query (void)
"the toner regions themselves thinner and less noticable; larger values "
"achieve the opposite effect.";
gimp_install_procedure ("plug_in_photocopy",
gimp_install_procedure (PLUG_IN_PROC,
"Propagates dark values and white regions in an "
"image to achieve photocopy effect",
help_string,
......@@ -161,7 +164,7 @@ query (void)
G_N_ELEMENTS (args), 0,
args, NULL);
gimp_plugin_menu_register ("plug_in_photocopy", "<Image>/Filters/Artistic");
gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Artistic");
}
static void
......@@ -196,7 +199,7 @@ run (const gchar *name,
{
case GIMP_RUN_INTERACTIVE:
/* Possibly retrieve data */
gimp_get_data ("plug_in_photocopy", &pvals);
gimp_get_data (PLUG_IN_PROC, &pvals);
/* First acquire information with a dialog */
if (! photocopy_dialog (drawable))
......@@ -212,7 +215,7 @@ run (const gchar *name,
case GIMP_RUN_WITH_LAST_VALS:
/* Possibly retrieve data */
gimp_get_data ("plug_in_photocopy", &pvals);
gimp_get_data (PLUG_IN_PROC, &pvals);
break;
default:
......@@ -234,7 +237,7 @@ run (const gchar *name,
/* Store data */
if (run_mode == GIMP_RUN_INTERACTIVE)
gimp_set_data ("plug_in_photocopy", &pvals, sizeof (PhotocopyVals));
gimp_set_data (PLUG_IN_PROC, &pvals, sizeof (PhotocopyVals));
}
else
{
......@@ -832,11 +835,11 @@ photocopy_dialog (GimpDrawable *drawable)
GtkObject *scale_data;
gboolean run;
gimp_ui_init ("photocopy", FALSE);
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Photocopy"), "photocopy",
dialog = gimp_dialog_new (_("Photocopy"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, "plug_in_photocopy",
gimp_standard_help_func, PLUG_IN_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -844,9 +847,9 @@ photocopy_dialog (GimpDrawable *drawable)
NULL);