Commit 7ccfebab authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

plug-ins/common/jigsaw.c plug-ins/common/laplace.c plug-ins/common/lic.c

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

	* plug-ins/common/jigsaw.c
	* plug-ins/common/laplace.c
	* plug-ins/common/lic.c
	* plug-ins/common/mail.c
	* plug-ins/common/mapcolor.c
	* plug-ins/common/max_rgb.c
	* plug-ins/common/mblur.c
	* plug-ins/common/mng.c
	* plug-ins/common/mosaic.c
	* plug-ins/common/neon.c
	* plug-ins/common/newsprint.c
	* plug-ins/common/nlfilt.c
	* plug-ins/common/noisify.c
	* plug-ins/common/normalize.c
	* plug-ins/common/nova.c
	* plug-ins/common/oilify.c: canonicalize procedure and
	parameter names. Misc cleanups.
parent f9014dd5
2005-08-14 Michael Natterer <mitch@gimp.org>
* plug-ins/common/jigsaw.c
* plug-ins/common/laplace.c
* plug-ins/common/lic.c
* plug-ins/common/mail.c
* plug-ins/common/mapcolor.c
* plug-ins/common/max_rgb.c
* plug-ins/common/mblur.c
* plug-ins/common/mng.c
* plug-ins/common/mosaic.c
* plug-ins/common/neon.c
* plug-ins/common/newsprint.c
* plug-ins/common/nlfilt.c
* plug-ins/common/noisify.c
* plug-ins/common/normalize.c
* plug-ins/common/nova.c
* plug-ins/common/oilify.c: canonicalize procedure and
parameter names. Misc cleanups.
2005-08-13 Manish Singh <yosh@gimp.org>
* app/core/gimpimage-preview.c (gimp_image_get_new_preview): if the
......
......@@ -43,6 +43,10 @@
#include "libgimp/stdplugins-intl.h"
#define PLUG_IN_PROC "plug-in-jigsaw"
#define PLUG_IN_BINARY "jigsaw"
typedef enum
{
BEZIER_1,
......@@ -188,8 +192,6 @@ static void check_config (gint width, gint height);
#define PLUG_IN_NAME "jigsaw"
#define XFACTOR2 0.0833
#define XFACTOR3 0.2083
#define XFACTOR4 0.2500
......@@ -342,17 +344,17 @@ query (void)
{
static GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive, Non-interactive, Last-Vals" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "Input drawable" },
{ GIMP_PDB_INT32, "x", "Number of tiles across > 0" },
{ GIMP_PDB_INT32, "y", "Number of tiles down > 0" },
{ GIMP_PDB_INT32, "style", "The style/shape of the jigsaw puzzle, 0 or 1" },
{ GIMP_PDB_INT32, "blend_lines", "Number of lines for shading bevels >= 0" },
{ GIMP_PDB_FLOAT, "blend_amount", "The power of the light highlights 0 =< 5" }
{ GIMP_PDB_INT32, "run-mode", "Interactive, Non-interactive, Last-Vals" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "Input drawable" },
{ GIMP_PDB_INT32, "x", "Number of tiles across > 0" },
{ GIMP_PDB_INT32, "y", "Number of tiles down > 0" },
{ GIMP_PDB_INT32, "style", "The style/shape of the jigsaw puzzle, 0 or 1" },
{ GIMP_PDB_INT32, "blend-lines", "Number of lines for shading bevels >= 0" },
{ GIMP_PDB_FLOAT, "blend-amount", "The power of the light highlights 0 =< 5" }
};
gimp_install_procedure ("plug_in_jigsaw",
gimp_install_procedure (PLUG_IN_PROC,
"Renders a jigsaw puzzle look",
"Jigsaw puzzle look",
"Nigel Wetten",
......@@ -364,8 +366,7 @@ query (void)
G_N_ELEMENTS (args), 0,
args, NULL);
gimp_plugin_menu_register ("plug_in_jigsaw",
"<Image>/Filters/Render/Pattern");
gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Render/Pattern");
}
static void
......@@ -406,7 +407,7 @@ run (const gchar *name,
break;
case GIMP_RUN_INTERACTIVE:
gimp_get_data("plug_in_jigsaw", &config);
gimp_get_data (PLUG_IN_PROC, &config);
if (! jigsaw_dialog (drawable))
{
status = GIMP_PDB_CANCEL;
......@@ -415,12 +416,12 @@ run (const gchar *name,
gimp_progress_init (_("Assembling Jigsaw..."));
jigsaw (drawable, NULL);
gimp_set_data ("plug_in_jigsaw", &config, sizeof(config_t));
gimp_set_data (PLUG_IN_PROC, &config, sizeof(config_t));
gimp_displays_flush ();
break;
case GIMP_RUN_WITH_LAST_VALS:
gimp_get_data("plug_in_jigsaw", &config);
gimp_get_data (PLUG_IN_PROC, &config);
jigsaw (drawable, NULL);
gimp_displays_flush ();
} /* switch */
......@@ -2415,11 +2416,11 @@ jigsaw_dialog (GimpDrawable *drawable)
GtkObject *adj;
gboolean run;
gimp_ui_init ("jigsaw", TRUE);
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Jigsaw"), "jigsaw",
dialog = gimp_dialog_new (_("Jigsaw"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, "plug-in-jigsaw",
gimp_standard_help_func, PLUG_IN_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -2427,9 +2428,9 @@ jigsaw_dialog (GimpDrawable *drawable)
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_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
......
......@@ -29,6 +29,10 @@
#include "libgimp/stdplugins-intl.h"
#define PLUG_IN_PROC "plug-in-laplace"
#define PLUG_IN_BINARY "laplace"
/* Declare local functions.
*/
static void query (void);
......@@ -62,12 +66,12 @@ 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_install_procedure ("plug_in_laplace",
gimp_install_procedure (PLUG_IN_PROC,
"Edge Detection with Laplace Operation",
"This plugin creates one-pixel wide edges from the "
"image, with the value proportional to the gradient. "
......@@ -84,8 +88,7 @@ query (void)
G_N_ELEMENTS (args), 0,
args, NULL);
gimp_plugin_menu_register ("plug_in_laplace",
"<Image>/Filters/Edge-Detect");
gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Edge-Detect");
}
static void
......
......@@ -49,7 +49,8 @@
#define numx 40 /* Pseudo-random vector grid size */
#define numy 40
#define HELP_ID "plug-in-lic"
#define PLUG_IN_PROC "plug-in-lic"
#define PLUG_IN_BINARY "lic"
typedef enum
{
......@@ -636,11 +637,11 @@ create_main_dialog (void)
gint row;
gboolean run;
gimp_ui_init ("lic", TRUE);
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Van Gogh (LIC)"), "lic",
dialog = gimp_dialog_new (_("Van Gogh (LIC)"), 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,
......@@ -648,9 +649,9 @@ create_main_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);
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
......@@ -798,12 +799,12 @@ query (void)
{
static GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive" },
{ GIMP_PDB_INT32, "run-mode", "Interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "Input drawable" }
};
gimp_install_procedure ("plug_in_lic",
gimp_install_procedure (PLUG_IN_PROC,
"Creates a Van Gogh effect (Line Integral Convolution)",
"No help yet",
"Tom Bech & Federico Mena Quintero",
......@@ -815,7 +816,7 @@ query (void)
G_N_ELEMENTS (args), 0,
args, NULL);
gimp_plugin_menu_register ("plug_in_lic", "<Image>/Filters/Artistic");
gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Artistic");
}
static void
......@@ -848,7 +849,7 @@ run (const gchar *name,
/* Possibly retrieve data */
/* ====================== */
gimp_get_data ("plug_in_lic", &licvals);
gimp_get_data (PLUG_IN_PROC, &licvals);
/* Get the specified drawable */
/* ========================== */
......@@ -873,7 +874,7 @@ run (const gchar *name,
if (create_main_dialog ())
compute_image (drawable);
gimp_set_data ("plug_in_lic", &licvals, sizeof (LicValues));
gimp_set_data (PLUG_IN_PROC, &licvals, sizeof (LicValues));
break;
case GIMP_RUN_WITH_LAST_VALS:
compute_image (drawable);
......
......@@ -164,8 +164,8 @@ enum
#define BUFFER_SIZE 256
#define PLUG_IN_NAME "plug_in_mail_image"
#define HELP_ID "plug-in-mail-image"
#define PLUG_IN_PROC "plug-in-mail-image"
#define PLUG_IN_BINARY "mail"
typedef struct
{
......@@ -238,18 +238,18 @@ query (void)
{
static GimpParamDef 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, "receipt", "The email address to send to" },
{ GIMP_PDB_STRING, "from", "The email address for the From: field" },
{ GIMP_PDB_STRING, "subject", "The subject" },
{ GIMP_PDB_STRING, "comment", "The Comment" },
{ GIMP_PDB_INT32, "encapsulation", "Uuencode, MIME" }
{ 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, "receipt", "The email address to send to" },
{ GIMP_PDB_STRING, "from", "The email address for the From: field" },
{ GIMP_PDB_STRING, "subject", "The subject" },
{ GIMP_PDB_STRING, "comment", "The Comment" },
{ GIMP_PDB_INT32, "encapsulation", "Uuencode, MIME" }
};
gimp_install_procedure (PLUG_IN_NAME,
gimp_install_procedure (PLUG_IN_PROC,
"pipe files to uuencode then mail them",
"You need to have uuencode and mail installed",
"Adrian Likins, Reagan Blundell",
......@@ -262,8 +262,8 @@ query (void)
G_N_ELEMENTS (args), 0,
args, NULL);
gimp_plugin_menu_register (PLUG_IN_NAME, "<Image>/File/Send");
gimp_plugin_icon_register (PLUG_IN_NAME,
gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/File/Send");
gimp_plugin_icon_register (PLUG_IN_PROC,
GIMP_ICON_TYPE_INLINE_PIXBUF, mail_icon);
}
......@@ -292,12 +292,12 @@ run (const gchar *name,
values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR;
if (strcmp (name, PLUG_IN_NAME) == 0)
if (strcmp (name, PLUG_IN_PROC) == 0)
{
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:
gimp_get_data (PLUG_IN_NAME, &mail_info);
gimp_get_data (PLUG_IN_PROC, &mail_info);
if (! strlen (mail_info.filename))
{
gchar *filename = gimp_image_get_filename (image_ID);
......@@ -334,7 +334,7 @@ run (const gchar *name,
break;
case GIMP_RUN_WITH_LAST_VALS:
gimp_get_data (PLUG_IN_NAME, &mail_info);
gimp_get_data (PLUG_IN_PROC, &mail_info);
break;
default:
......@@ -349,7 +349,7 @@ run (const gchar *name,
run_mode);
if (status == GIMP_PDB_SUCCESS)
gimp_set_data (PLUG_IN_NAME, &mail_info, sizeof (m_info));
gimp_set_data (PLUG_IN_PROC, &mail_info, sizeof (m_info));
}
}
else
......@@ -494,7 +494,7 @@ save_dialog (void)
gint row = 0;
gboolean run;
gimp_ui_init ("mail", FALSE);
gimp_ui_init (PLUG_IN_BINARY, FALSE);
/* check gimprc for a preferred "From:" address */
gump_from = gimp_gimprc_query ("gump-from");
......@@ -505,9 +505,9 @@ save_dialog (void)
g_free (gump_from);
}
dlg = gimp_dialog_new (_("Send as Mail"), "mail",
dlg = gimp_dialog_new (_("Send as Mail"), 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,
......
......@@ -43,8 +43,11 @@ static char dversio[] = "v1.03 22-May-00";
#include "libgimp/stdplugins-intl.h"
#define PRV_WIDTH 50
#define PRV_HEIGHT 20
#define COLOR_MAP_PROC "plug-in-color-map"
#define COLOR_ADJUST_PROC "plug-in-color-adjust"
#define PLUG_IN_BINARY "mapcolor"
#define PRV_WIDTH 50
#define PRV_HEIGHT 20
typedef struct
{
......@@ -136,7 +139,7 @@ query (void)
{ GIMP_PDB_INT32, "map_mode", "Mapping mode (0: linear, others reserved)" }
};
gimp_install_procedure ("plug_in_color_adjust",
gimp_install_procedure (COLOR_ADJUST_PROC,
"Adjust color range given by foreground/background "
"color to black/white",
"The current foreground color is mapped to black "
......@@ -152,10 +155,9 @@ query (void)
G_N_ELEMENTS (adjust_args), 0,
adjust_args, NULL);
gimp_plugin_menu_register ("plug_in_color_adjust",
"<Image>/Filters/Colors/Map");
gimp_plugin_menu_register (COLOR_ADJUST_PROC, "<Image>/Filters/Colors/Map");
gimp_install_procedure ("plug_in_color_map",
gimp_install_procedure (COLOR_MAP_PROC,
"Map color range specified by two colors"
"to color range specified by two other color.",
"Map color range specified by two colors"
......@@ -170,8 +172,7 @@ query (void)
G_N_ELEMENTS (map_args), 0,
map_args, NULL);
gimp_plugin_menu_register ("plug_in_color_map",
"<Image>/Filters/Colors/Map");
gimp_plugin_menu_register (COLOR_MAP_PROC, "<Image>/Filters/Colors/Map");
}
......@@ -216,7 +217,7 @@ run (const gchar *name,
break;
}
if (strcmp (name, "plug_in_color_adjust") == 0)
if (strcmp (name, COLOR_ADJUST_PROC) == 0)
{
if (nparams != 3) /* Make sure all the arguments are there */
{
......@@ -238,7 +239,7 @@ run (const gchar *name,
break;
}
if (strcmp (name, "plug_in_color_map") == 0)
if (strcmp (name, COLOR_MAP_PROC) == 0)
{
if (run_mode == GIMP_RUN_NONINTERACTIVE)
{
......@@ -349,11 +350,11 @@ mapcolor_dialog (GimpDrawable *drawable)
gint j;
gboolean run;
gimp_ui_init ("mapcolor", TRUE);
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Map Color Range"), "mapcolor",
dialog = gimp_dialog_new (_("Map Color Range"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, "plug-in-color-map",
gimp_standard_help_func, COLOR_MAP_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -361,9 +362,9 @@ mapcolor_dialog (GimpDrawable *drawable)
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_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
......
......@@ -33,9 +33,8 @@
#include "libgimp/stdplugins-intl.h"
#define PLUG_IN_NAME "plug_in_max_rgb"
#define SHORT_NAME "max_rgb"
#define HELP_ID "plug-in-max-rgb"
#define PLUG_IN_PROC "plug-in-max-rgb"
#define PLUG_IN_BINARY "max_rgb"
static void query (void);
......@@ -83,13 +82,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 (not used)" },
{ GIMP_PDB_DRAWABLE, "drawable", "Input drawable" },
{ GIMP_PDB_INT32, "max_p", "1 for maximizing, 0 for minimizing" }
{ GIMP_PDB_INT32, "max-p", "1 for maximizing, 0 for minimizing" }
};
gimp_install_procedure (PLUG_IN_NAME,
gimp_install_procedure (PLUG_IN_PROC,
"Return an image in which each pixel holds only "
"the channel that has the maximum value in three "
"(red, green, blue) channels, and other channels "
......@@ -104,7 +103,7 @@ query (void)
G_N_ELEMENTS (args), 0,
args, NULL);
gimp_plugin_menu_register (PLUG_IN_NAME, "<Image>/Filters/Colors");
gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Colors");
}
static void
......@@ -133,7 +132,7 @@ run (const gchar *name,
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:
gimp_get_data (PLUG_IN_NAME, &pvals);
gimp_get_data (PLUG_IN_PROC, &pvals);
/* Since a channel might be selected, we must check wheter RGB or not. */
if (!gimp_drawable_is_rgb (drawable->drawable_id))
{
......@@ -148,7 +147,7 @@ run (const gchar *name,
pvals.max_p = param[3].data.d_int32;
break;
case GIMP_RUN_WITH_LAST_VALS:
gimp_get_data (PLUG_IN_NAME, &pvals);
gimp_get_data (PLUG_IN_PROC, &pvals);
break;
}
......@@ -157,14 +156,15 @@ run (const gchar *name,
if (run_mode != GIMP_RUN_NONINTERACTIVE)
gimp_displays_flush ();
if (run_mode == GIMP_RUN_INTERACTIVE && status == GIMP_PDB_SUCCESS)
gimp_set_data (PLUG_IN_NAME, &pvals, sizeof (ValueType));
gimp_set_data (PLUG_IN_PROC, &pvals, sizeof (ValueType));
values[0].data.d_status = status;
}
typedef struct {
gint init_value;
gint flag;
typedef struct
{
gint init_value;
gint flag;
gboolean has_alpha;
} MaxRgbParam_t;
......@@ -260,11 +260,11 @@ max_rgb_dialog (GimpDrawable *drawable)
GtkWidget *min;
gboolean run;
gimp_ui_init ("max_rgb", TRUE);
gimp_ui_init (PLUG_IN_BINARY, TRUE);
dialog = gimp_dialog_new (_("Max RGB"), "max_rgb",
dialog = gimp_dialog_new (_("Max RGB"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, "plug-in-max-rgb",
gimp_standard_help_func, PLUG_IN_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -272,9 +272,9 @@ max_rgb_dialog (GimpDrawable *drawable)
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_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
......
......@@ -54,9 +54,10 @@
#include "libgimp/stdplugins-intl.h"
#define PLUG_IN_NAME "plug_in_mblur"
#define PLUG_IN_PROC "plug-in-mblur"
#define PLUG_IN_BINARY "mblur"
#define PLUG_IN_VERSION "Sep 1997, 1.2"
#define HELP_ID "plug-in-mblur"
typedef enum
{
......@@ -162,7 +163,7 @@ query (void)
{ GIMP_PDB_INT32, "blur_outward", "For radial, 1 for outward, 0 for inward (optional)" },
};
gimp_install_procedure (PLUG_IN_NAME,
gimp_install_procedure (PLUG_IN_PROC,
"Motion blur of image",
"This plug-in simulates the effect seen when "
"photographing a moving object at a slow shutter "
......@@ -176,7 +177,7 @@ query (void)
G_N_ELEMENTS (args), 0,
args, NULL);
gimp_plugin_menu_register (PLUG_IN_NAME, "<Image>/Filters/Blur");
gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Blur");
}
static void
......@@ -223,7 +224,7 @@ run (const gchar *name,
{
case GIMP_RUN_INTERACTIVE:
/* Possibly retrieve data */
gimp_get_data (PLUG_IN_NAME, &mbvals);
gimp_get_data (PLUG_IN_PROC, &mbvals);
/* Get information from the dialog */
if (! mblur_dialog (param[1].data.d_image, drawable))
......@@ -259,7 +260,7 @@ run (const gchar *name,
case GIMP_RUN_WITH_LAST_VALS:
/* Possibly retrieve data */
gimp_get_data (PLUG_IN_NAME, &mbvals);
gimp_get_data (PLUG_IN_PROC, &mbvals);
break;
default:
......@@ -283,7 +284,7 @@ run (const gchar *name,
/* Store data */
if (run_mode == GIMP_RUN_INTERACTIVE)
gimp_set_data (PLUG_IN_NAME, &mbvals, sizeof(mblur_vals_t));
gimp_set_data (PLUG_IN_PROC, &mbvals, sizeof (mblur_vals_t));
}
else if (status == GIMP_PDB_SUCCESS)
status = GIMP_PDB_EXECUTION_ERROR;
......@@ -904,11 +905,11 @@ mblur_dialog (gint32 image_ID,
gdouble xres, yres;
gboolean run;
gimp_ui_init ("mblur", FALSE);
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dialog = gimp_dialog_new (_("Motion Blur"), "mblur",
dialog = gimp_dialog_new (_("Motion Blur"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, "plug-in-mblur",
gimp_standard_help_func, PLUG_IN_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
......@@ -916,9 +917,9 @@ mblur_dialog (gint32 image_ID,
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_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
......
......@@ -95,7 +95,9 @@
#include "libgimp/stdplugins-intl.h"
#define SCALE_WIDTH 125
#define SAVE_PROC "file-mng-save"
#define PLUG_IN_BINARY "mng"
#define SCALE_WIDTH 125
enum
{
......@@ -1317,9 +1319,9 @@ mng_save_dialog (gint32 image_id)
gboolean run;
dlg = gimp_dialog_new (_("Save as MNG"), "mng",