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

app/plug-in/Makefile.am app/plug-in/plug-in-types.h removed...

2006-04-06  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/Makefile.am
	* app/plug-in/plug-in-types.h
	* app/plug-in/plug-in-proc-def.[ch]: removed...

	* app/pdb/Makefile.am
	* app/pdb/pdb-types.h
	* app/pdb/gimppluginprocedure.[ch]: ...and added here. Virtualized
	get_progname().

	* app/pdb/gimptemporaryprocedure.[ch]: new class derived from
	GimpPlugInProcedure.

	* app/pdb/gimpprocedure.[ch] (struct GimpProcedure): remove union
	exec_method and all the structs it needed. Procedure execution is
	properly virtualized now. Removed gimp_procedure_initialize() and
	grow the args and values arrays dynamically in
	gimp_procedure_add_argument()/return_value(). Added marshal_func
	parameter to gimp_procedure_new().

	* app/actions/plug-in-actions.c
	* app/actions/plug-in-commands.c
	* app/core/gimp-gui.c
	* app/dialogs/file-save-dialog.c
	* app/file/file-open.c
	* app/file/file-save.c
	* app/file/file-utils.c
	* app/gui/gui-vtable.c
	* app/menus/plug-in-menus.c
	* app/plug-in/plug-in-def.c
	* app/plug-in/plug-in-message.c
	* app/plug-in/plug-in-progress.c
	* app/plug-in/plug-in-rc.c
	* app/plug-in/plug-in-run.c
	* app/plug-in/plug-in.c
	* app/plug-in/plug-ins-query.c
	* app/plug-in/plug-ins.c
	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpfileprocview.c
	* app/widgets/gimppluginaction.c
	* app/xcf/xcf.c
	* tools/pdbgen/pdb/fileops.pdb
	* tools/pdbgen/pdb/plug_in.pdb
	* tools/pdbgen/app.pl: changed accordingly.

	* app/pdb/*_cmds.c: regenerated.

	* app/pdb/gimp-pdb.c: added uglyness to make the app link again.
parent a883043b
2006-04-06 Michael Natterer <mitch@gimp.org>
* app/plug-in/Makefile.am
* app/plug-in/plug-in-types.h
* app/plug-in/plug-in-proc-def.[ch]: removed...
* app/pdb/Makefile.am
* app/pdb/pdb-types.h
* app/pdb/gimppluginprocedure.[ch]: ...and added here. Virtualized
get_progname().
* app/pdb/gimptemporaryprocedure.[ch]: new class derived from
GimpPlugInProcedure.
* app/pdb/gimpprocedure.[ch] (struct GimpProcedure): remove union
exec_method and all the structs it needed. Procedure execution is
properly virtualized now. Removed gimp_procedure_initialize() and
grow the args and values arrays dynamically in
gimp_procedure_add_argument()/return_value(). Added marshal_func
parameter to gimp_procedure_new().
* app/actions/plug-in-actions.c
* app/actions/plug-in-commands.c
* app/core/gimp-gui.c
* app/dialogs/file-save-dialog.c
* app/file/file-open.c
* app/file/file-save.c
* app/file/file-utils.c
* app/gui/gui-vtable.c
* app/menus/plug-in-menus.c
* app/plug-in/plug-in-def.c
* app/plug-in/plug-in-message.c
* app/plug-in/plug-in-progress.c
* app/plug-in/plug-in-rc.c
* app/plug-in/plug-in-run.c
* app/plug-in/plug-in.c
* app/plug-in/plug-ins-query.c
* app/plug-in/plug-ins.c
* app/widgets/gimpfiledialog.c
* app/widgets/gimpfileprocview.c
* app/widgets/gimppluginaction.c
* app/xcf/xcf.c
* tools/pdbgen/pdb/fileops.pdb
* tools/pdbgen/pdb/plug_in.pdb
* tools/pdbgen/app.pl: changed accordingly.
* app/pdb/*_cmds.c: regenerated.
* app/pdb/gimp-pdb.c: added uglyness to make the app link again.
2006-04-06 Sven Neumann <sven@gimp.org>
* plug-ins/common/compose.c: add layers in the expected order.
......@@ -115,7 +165,7 @@
* app/widgets/gimppluginaction.[ch]
* app/xcf/xcf.c
* tools/pdbgen/pdb/fileops.pdb
* tools/pdbgen/pdb/plug_in.pdb: changed addordingly.
* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
* app/pdb/fileops_cmds.c
* app/pdb/plug_in_cmds.c: regenerated.
......
......@@ -33,10 +33,9 @@
#include "core/gimpdrawable.h"
#include "core/gimpimage.h"
#include "pdb/gimpprocedure.h"
#include "pdb/gimppluginprocedure.h"
#include "plug-in/plug-ins.h"
#include "plug-in/plug-in-proc-def.h"
#include "widgets/gimpactiongroup.h"
#include "widgets/gimphelp-ids.h"
......
......@@ -35,7 +35,6 @@
#include "plug-in/plug-in-data.h"
#include "plug-in/plug-in-run.h"
#include "plug-in/plug-in-proc-def.h"
#include "pdb/gimpprocedure.h"
......
......@@ -24,7 +24,7 @@
#include "core-types.h"
#include "plug-in/plug-in-proc-def.h"
#include "pdb/gimppluginprocedure.h"
#include "gimp.h"
#include "gimp-gui.h"
......
......@@ -31,7 +31,7 @@
#include "core/gimpimage.h"
#include "core/gimpprogress.h"
#include "plug-in/plug-in-proc-def.h"
#include "pdb/gimppluginprocedure.h"
#include "file/file-save.h"
#include "file/file-utils.h"
......
......@@ -57,10 +57,7 @@
#include "core/gimpprogress.h"
#include "pdb/gimp-pdb.h"
#include "pdb/gimpprocedure.h"
#include "plug-in/plug-in.h"
#include "plug-in/plug-in-proc-def.h"
#include "pdb/gimppluginprocedure.h"
#include "file-open.h"
#include "file-utils.h"
......
......@@ -55,10 +55,7 @@
#include "core/gimpprogress.h"
#include "pdb/gimp-pdb.h"
#include "pdb/gimpprocedure.h"
#include "plug-in/plug-in.h"
#include "plug-in/plug-in-proc-def.h"
#include "pdb/gimppluginprocedure.h"
#include "file-save.h"
#include "file-utils.h"
......
......@@ -44,8 +44,7 @@
#include "core/gimp.h"
#include "core/gimpimage.h"
#include "plug-in/plug-in.h"
#include "plug-in/plug-in-proc-def.h"
#include "pdb/gimppluginprocedure.h"
#include "file-utils.h"
......
......@@ -41,8 +41,9 @@
#include "text/gimpfont.h"
#include "pdb/gimppluginprocedure.h"
#include "plug-in/plug-ins.h"
#include "plug-in/plug-in-proc-def.h"
#include "widgets/gimpactiongroup.h"
#include "widgets/gimpbrushselect.h"
......
......@@ -18,7 +18,7 @@
#include "config.h"
#include "string.h"
#include <string.h>
#include <gtk/gtk.h>
......@@ -30,11 +30,10 @@
#include "core/gimp.h"
#include "pdb/gimpprocedure.h"
#include "pdb/gimppluginprocedure.h"
#include "plug-in/plug-ins.h"
#include "plug-in/plug-in-def.h"
#include "plug-in/plug-in-proc-def.h"
#include "widgets/gimpuimanager.h"
......
......@@ -13,6 +13,10 @@ libapppdb_a_SOURCES = \
gimp-pdb-query.h \
gimpprocedure.c \
gimpprocedure.h \
gimppluginprocedure.c \
gimppluginprocedure.h \
gimptemporaryprocedure.c \
gimptemporaryprocedure.h \
\
internal_procs.c \
internal_procs.h \
......
......@@ -869,9 +869,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-new
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_new_invoker);
procedure = gimp_procedure_new (brush_new_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-new",
"gimp-brush-new",
......@@ -901,9 +899,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-duplicate
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_duplicate_invoker);
procedure = gimp_procedure_new (brush_duplicate_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-duplicate",
"gimp-brush-duplicate",
......@@ -933,9 +929,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-is-generated
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_is_generated_invoker);
procedure = gimp_procedure_new (brush_is_generated_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-is-generated",
"gimp-brush-is-generated",
......@@ -964,9 +958,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-rename
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 1,
brush_rename_invoker);
procedure = gimp_procedure_new (brush_rename_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-rename",
"gimp-brush-rename",
......@@ -1003,9 +995,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-delete
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 0,
brush_delete_invoker);
procedure = gimp_procedure_new (brush_delete_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-delete",
"gimp-brush-delete",
......@@ -1028,9 +1018,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-is-editable
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_is_editable_invoker);
procedure = gimp_procedure_new (brush_is_editable_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-is-editable",
"gimp-brush-is-editable",
......@@ -1059,9 +1047,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-get-info
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 4,
brush_get_info_invoker);
procedure = gimp_procedure_new (brush_get_info_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-info",
"gimp-brush-get-info",
......@@ -1108,9 +1094,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-get-pixels
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 8,
brush_get_pixels_invoker);
procedure = gimp_procedure_new (brush_get_pixels_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-pixels",
"gimp-brush-get-pixels",
......@@ -1179,9 +1163,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-get-spacing
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_get_spacing_invoker);
procedure = gimp_procedure_new (brush_get_spacing_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-spacing",
"gimp-brush-get-spacing",
......@@ -1210,9 +1192,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-set-spacing
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 0,
brush_set_spacing_invoker);
procedure = gimp_procedure_new (brush_set_spacing_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-spacing",
"gimp-brush-set-spacing",
......@@ -1241,9 +1221,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-get-shape
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_get_shape_invoker);
procedure = gimp_procedure_new (brush_get_shape_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-shape",
"gimp-brush-get-shape",
......@@ -1273,9 +1251,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-get-radius
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_get_radius_invoker);
procedure = gimp_procedure_new (brush_get_radius_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-radius",
"gimp-brush-get-radius",
......@@ -1304,9 +1280,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-get-spikes
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_get_spikes_invoker);
procedure = gimp_procedure_new (brush_get_spikes_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-spikes",
"gimp-brush-get-spikes",
......@@ -1335,9 +1309,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-get-hardness
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_get_hardness_invoker);
procedure = gimp_procedure_new (brush_get_hardness_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-hardness",
"gimp-brush-get-hardness",
......@@ -1366,9 +1338,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-get-aspect-ratio
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_get_aspect_ratio_invoker);
procedure = gimp_procedure_new (brush_get_aspect_ratio_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-aspect-ratio",
"gimp-brush-get-aspect-ratio",
......@@ -1397,9 +1367,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-get-angle
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
brush_get_angle_invoker);
procedure = gimp_procedure_new (brush_get_angle_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-angle",
"gimp-brush-get-angle",
......@@ -1428,9 +1396,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-set-shape
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 1,
brush_set_shape_invoker);
procedure = gimp_procedure_new (brush_set_shape_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-shape",
"gimp-brush-set-shape",
......@@ -1467,9 +1433,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-set-radius
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 1,
brush_set_radius_invoker);
procedure = gimp_procedure_new (brush_set_radius_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-radius",
"gimp-brush-set-radius",
......@@ -1504,9 +1468,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-set-spikes
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 1,
brush_set_spikes_invoker);
procedure = gimp_procedure_new (brush_set_spikes_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-spikes",
"gimp-brush-set-spikes",
......@@ -1541,9 +1503,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-set-hardness
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 1,
brush_set_hardness_invoker);
procedure = gimp_procedure_new (brush_set_hardness_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-hardness",
"gimp-brush-set-hardness",
......@@ -1578,9 +1538,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-set-aspect-ratio
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 1,
brush_set_aspect_ratio_invoker);
procedure = gimp_procedure_new (brush_set_aspect_ratio_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-aspect-ratio",
"gimp-brush-set-aspect-ratio",
......@@ -1615,9 +1573,7 @@ register_brush_procs (Gimp *gimp)
/*
* gimp-brush-set-angle
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 1,
brush_set_angle_invoker);
procedure = gimp_procedure_new (brush_set_angle_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-angle",
"gimp-brush-set-angle",
......
......@@ -138,9 +138,7 @@ register_brush_select_procs (Gimp *gimp)
/*
* gimp-brushes-popup
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 6, 0,
brushes_popup_invoker);
procedure = gimp_procedure_new (brushes_popup_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-popup",
"gimp-brushes-popup",
......@@ -196,9 +194,7 @@ register_brush_select_procs (Gimp *gimp)
/*
* gimp-brushes-close-popup
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 0,
brushes_close_popup_invoker);
procedure = gimp_procedure_new (brushes_close_popup_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-close-popup",
"gimp-brushes-close-popup",
......@@ -221,9 +217,7 @@ register_brush_select_procs (Gimp *gimp)
/*
* gimp-brushes-set-popup
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 5, 0,
brushes_set_popup_invoker);
procedure = gimp_procedure_new (brushes_set_popup_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-set-popup",
"gimp-brushes-set-popup",
......
......@@ -241,9 +241,7 @@ register_brushes_procs (Gimp *gimp)
/*
* gimp-brushes-refresh
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 0, 0,
brushes_refresh_invoker);
procedure = gimp_procedure_new (brushes_refresh_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-refresh",
"gimp-brushes-refresh",
......@@ -259,9 +257,7 @@ register_brushes_procs (Gimp *gimp)
/*
* gimp-brushes-get-list
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 2,
brushes_get_list_invoker);
procedure = gimp_procedure_new (brushes_get_list_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-get-list",
"gimp-brushes-get-list",
......@@ -295,9 +291,7 @@ register_brushes_procs (Gimp *gimp)
/*
* gimp-brushes-get-brush
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 0, 4,
brushes_get_brush_invoker);
procedure = gimp_procedure_new (brushes_get_brush_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-get-brush",
"gimp-brushes-get-brush",
......@@ -338,9 +332,7 @@ register_brushes_procs (Gimp *gimp)
/*
* gimp-brushes-get-spacing
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 0, 1,
brushes_get_spacing_invoker);
procedure = gimp_procedure_new (brushes_get_spacing_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-get-spacing",
"gimp-brushes-get-spacing",
......@@ -362,9 +354,7 @@ register_brushes_procs (Gimp *gimp)
/*
* gimp-brushes-set-spacing
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 0,
brushes_set_spacing_invoker);
procedure = gimp_procedure_new (brushes_set_spacing_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-set-spacing",
"gimp-brushes-set-spacing",
......@@ -386,9 +376,7 @@ register_brushes_procs (Gimp *gimp)
/*
* gimp-brushes-get-brush-data
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 8,
brushes_get_brush_data_invoker);
procedure = gimp_procedure_new (brushes_get_brush_data_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-get-brush-data",
"gimp-brushes-get-brush-data",
......
......@@ -272,9 +272,7 @@ register_buffer_procs (Gimp *gimp)
/*
* gimp-buffers-get-list
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 2,
buffers_get_list_invoker);
procedure = gimp_procedure_new (buffers_get_list_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-buffers-get-list",
"gimp-buffers-get-list",
......@@ -308,9 +306,7 @@ register_buffer_procs (Gimp *gimp)
/*
* gimp-buffer-rename
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 1,
buffer_rename_invoker);
procedure = gimp_procedure_new (buffer_rename_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-rename",
"gimp-buffer-rename",
......@@ -347,9 +343,7 @@ register_buffer_procs (Gimp *gimp)
/*
* gimp-buffer-delete
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 0,
buffer_delete_invoker);
procedure = gimp_procedure_new (buffer_delete_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-delete",
"gimp-buffer-delete",
......@@ -372,9 +366,7 @@ register_buffer_procs (Gimp *gimp)
/*
* gimp-buffer-get-width
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
buffer_get_width_invoker);
procedure = gimp_procedure_new (buffer_get_width_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-width",
"gimp-buffer-get-width",
......@@ -403,9 +395,7 @@ register_buffer_procs (Gimp *gimp)
/*
* gimp-buffer-get-height
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
buffer_get_height_invoker);
procedure = gimp_procedure_new (buffer_get_height_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-height",
"gimp-buffer-get-height",
......@@ -434,9 +424,7 @@ register_buffer_procs (Gimp *gimp)
/*
* gimp-buffer-get-bytes
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
buffer_get_bytes_invoker);
procedure = gimp_procedure_new (buffer_get_bytes_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-bytes",
"gimp-buffer-get-bytes",
......@@ -465,9 +453,7 @@ register_buffer_procs (Gimp *gimp)
/*
* gimp-buffer-get-image-type
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
buffer_get_image_type_invoker);
procedure = gimp_procedure_new (buffer_get_image_type_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-image-type",
"gimp-buffer-get-image-type",
......
......@@ -333,9 +333,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-new
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 6, 1,
channel_new_invoker);
procedure = gimp_procedure_new (channel_new_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-new",
"gimp-channel-new",
......@@ -394,9 +392,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-new-from-component
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 3, 1,
channel_new_from_component_invoker);
procedure = gimp_procedure_new (channel_new_from_component_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-new-from-component",
"gimp-channel-new-from-component",
......@@ -438,9 +434,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-copy
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
channel_copy_invoker);
procedure = gimp_procedure_new (channel_copy_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-copy",
"gimp-channel-copy",
......@@ -468,9 +462,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-combine-masks
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 5, 0,
channel_combine_masks_invoker);
procedure = gimp_procedure_new (channel_combine_masks_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-combine-masks",
"gimp-channel-combine-masks",
......@@ -517,9 +509,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-get-show-masked
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
channel_get_show_masked_invoker);
procedure = gimp_procedure_new (channel_get_show_masked_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-get-show-masked",
"gimp-channel-get-show-masked",
......@@ -547,9 +537,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-set-show-masked
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 0,
channel_set_show_masked_invoker);
procedure = gimp_procedure_new (channel_set_show_masked_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-set-show-masked",
"gimp-channel-set-show-masked",
......@@ -577,9 +565,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-get-opacity
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
channel_get_opacity_invoker);
procedure = gimp_procedure_new (channel_get_opacity_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-get-opacity",
"gimp-channel-get-opacity",
......@@ -607,9 +593,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-set-opacity
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 0,
channel_set_opacity_invoker);
procedure = gimp_procedure_new (channel_set_opacity_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-set-opacity",
"gimp-channel-set-opacity",
......@@ -637,9 +621,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-get-color
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 1,
channel_get_color_invoker);
procedure = gimp_procedure_new (channel_get_color_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-get-color",
"gimp-channel-get-color",
......@@ -667,9 +649,7 @@ register_channel_procs (Gimp *gimp)
/*
* gimp-channel-set-color
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 2, 0,
channel_set_color_invoker);
procedure = gimp_procedure_new (channel_set_color_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-channel-set-color",
"gimp-channel-set-color",
......
......@@ -839,9 +839,7 @@ register_color_procs (Gimp *gimp)
/*
* gimp-brightness-contrast
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 3, 0,
brightness_contrast_invoker);
procedure = gimp_procedure_new (brightness_contrast_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-brightness-contrast",
"gimp-brightness-contrast",
......@@ -875,9 +873,7 @@ register_color_procs (Gimp *gimp)
/*
* gimp-levels
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 7, 0,
levels_invoker);
procedure = gimp_procedure_new (levels_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-levels",
"gimp-levels",
......@@ -936,9 +932,7 @@ register_color_procs (Gimp *gimp)
/*
* gimp-levels-auto
*/
procedure = gimp_procedure_new ();
gimp_procedure_initialize (procedure, GIMP_INTERNAL, 1, 0,
levels_auto_invoker);
procedure = gimp_procedure_new (levels_auto_invoker);
gimp_procedure_set_static_strings (procedure,
"gimp-levels-auto",
"gimp-levels-auto",
......@@ -960,9 +954,7 @@ register_color_procs (Gimp *gimp)