Commit a450ba46 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

declared GimpPlugInInfo and GimpParamDef arrays as const.

2006-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/*/*.c: declared GimpPlugInInfo and GimpParamDef arrays
	as const.
parent 055617ac
2006-05-16 Sven Neumann <sven@gimp.org>
* plug-ins/*/*.c: declared GimpPlugInInfo and GimpParamDef arrays
as const.
2006-05-16 Sven Neumann <sven@gimp.org>
 
* plug-ins/script-fu/script-fu.c: removed empty quit() method.
......
......@@ -184,7 +184,7 @@ static void fractalexplorer_list_load_all (const gchar *path);
static void fractalexplorer_rescan_list (GtkWidget *widget,
gpointer data);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -205,7 +205,7 @@ MAIN()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......
......@@ -160,7 +160,7 @@ check_drawables (void)
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive (0), non-interactive (1)" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......@@ -324,7 +324,7 @@ run (const gchar *name,
g_free (ypostab);
}
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......
......@@ -136,7 +136,7 @@ check_drawables (GimpDrawable *drawable)
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive (0), non-interactive (1)" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......@@ -330,7 +330,7 @@ run (const gchar *name,
gimp_drawable_detach (drawable);
}
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......
......@@ -80,7 +80,7 @@ static void run (const gchar *name,
gint *nreturn_vals,
GimpParam **return_vals);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -93,18 +93,18 @@ MAIN ()
static void
query (void)
{
static GimpParamDef load_args[] =
static const 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" },
};
static GimpParamDef load_return_vals[] =
static const GimpParamDef load_return_vals[] =
{
{ GIMP_PDB_IMAGE, "image", "Output image" },
};
static GimpParamDef save_args[] =
static const GimpParamDef save_args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......
......@@ -92,7 +92,7 @@ static void alienmap2_get_label_size (void);
static GtkWidget *preview;
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -162,7 +162,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......
......@@ -58,7 +58,7 @@ static gboolean need_palette (const gchar *file);
/* Globals... */
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -78,19 +78,19 @@ MAIN ()
static void
query (void)
{
static GimpParamDef load_args[] =
static const GimpParamDef load_args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_STRING, "filename", "Filename to load image from" },
{ GIMP_PDB_STRING, "raw-filename", "Name entered" },
{ GIMP_PDB_STRING, "palette-filename", "Filename to load palette from" }
};
static GimpParamDef load_return_vals[] =
static const GimpParamDef load_return_vals[] =
{
{ GIMP_PDB_IMAGE, "image", "Output image" }
};
static GimpParamDef save_args[] =
static const GimpParamDef save_args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......
......@@ -397,7 +397,7 @@ static gdouble parse_line_to_gdouble (FILE *file,
gboolean *flag);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -445,7 +445,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args [] =
static const GimpParamDef args [] =
{
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image (not used)" },
......
......@@ -64,7 +64,7 @@ static gint aa_dialog (gint selected);
* Some global variables.
*/
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -78,7 +78,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef save_args[] =
static const GimpParamDef save_args[] =
{
{GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive"},
{GIMP_PDB_IMAGE, "image", "Input image"},
......
......@@ -77,7 +77,7 @@ static void align_layers_get_align_offsets (gint32 drawable_id,
static gint align_layers_dialog (void);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -115,7 +115,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args [] =
static const GimpParamDef args [] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive"},
{ GIMP_PDB_IMAGE, "image", "Input image"},
......
......@@ -94,7 +94,7 @@ static gboolean is_ms_tag (const gchar *str,
gint *taglength);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -143,7 +143,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......
......@@ -89,7 +89,7 @@ static gboolean is_ms_tag (const gchar *str,
gint *taglength);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -118,13 +118,13 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
{ GIMP_PDB_DRAWABLE, "drawable", "Input drawable (unused)" }
};
static GimpParamDef return_args[] =
static const GimpParamDef return_args[] =
{
{ GIMP_PDB_IMAGE, "result", "Resulting image" }
};
......
......@@ -64,7 +64,7 @@ static void drawlens (GimpDrawable *drawable,
static gboolean lens_dialog (GimpDrawable *drawable);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -94,7 +94,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image (unused)" },
......
......@@ -57,7 +57,7 @@ static void autocrop (GimpDrawable *drawable,
gboolean layer_only);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -73,7 +73,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......
......@@ -44,7 +44,7 @@ static void autostretch_hsv (GimpDrawable *drawable);
static void indexed_autostretch_hsv (gint32 image_ID);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -58,7 +58,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......
......@@ -79,7 +79,7 @@ static void dialog_update_preview (GimpDrawable *drawable,
GimpPreview *preview);
static void apply_blinds (GimpDrawable *drawable);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -101,7 +101,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image (unused)" },
......
......@@ -88,7 +88,7 @@ static void run (const gchar *name,
gint *nreturn_vals,
GimpParam **return_vals);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -119,7 +119,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image (unused)" },
......
......@@ -54,7 +54,7 @@ static void add_new_color (gint bytes,
static void thickness_callback (GtkWidget *widget,
gpointer data);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init */
NULL, /* quit */
......@@ -82,7 +82,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image (unused)" },
......@@ -90,7 +90,7 @@ query (void)
{ GIMP_PDB_INT32, "thickness", "Border size to take in count" },
{ GIMP_PDB_INT32, "bucket-exponent", "Bits for bucket size (default=4: 16 Levels)" },
};
static GimpParamDef return_vals[] =
static const GimpParamDef return_vals[] =
{
{ GIMP_PDB_COLOR, "borderaverage", "Sends the average color of the specified border to the Toolbox foreground." },
};
......
......@@ -243,7 +243,7 @@ static void dialog_maptype_callback (GtkWidget *widget,
/***** Variables *****/
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -306,7 +306,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......
......@@ -44,7 +44,7 @@ static void c_astretch (GimpDrawable *drawable);
static void indexed_c_astretch (gint32 image_ID);
GimpPlugInInfo PLUG_IN_INFO =
const GimpPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
......@@ -58,7 +58,7 @@ MAIN ()
static void
query (void)
{
static GimpParamDef args[] =
static const GimpParamDef args[] =
{
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image" },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment