gimp/app/plug-in
Michael Natterer ecb0b58439 Changed the semantics of GIMP_EXTENSION and (to some extent) of
2003-06-19  Michael Natterer  <mitch@gimp.org>

	Changed the semantics of GIMP_EXTENSION and (to some extent)
	of GIMP_PLUGIN:

	The old meaning of EXTENSION was "I live in the toolbox" and
	PLUGIN meant "I take RUN-MODE,IMAGE,DRAWABLE args (but only if I
	am invoked interactively)". This is completely useless, since
	living in the toolbox means having "<Toolbox>" in the menu_path
	and taking RUN-MODE,IMAGE,DRAWABLE means just that, regardless of
	what type of procedure we are.

	The new meaning of GIMP_PLUGIN is just "I am an ordinary procedure,
	I am invoked, do my job and finish", while GIMP_EXTENSION means
	"I will install temporary procedures and I will keep running to
	keep them available".

	(A GIMP_EXTENSION *must* call gimp_extension_ack() now to tell the
	core that it's ready to run, or the core will block waiting for
	the message !!!).

	* configure.in: bumped version number to 1.3.16.

	* libgimpbase/gimpprotocol.h: increased protocol version number so
	old extensions will refuse to load.

	* app/gui/plug-in-commands.c (plug_in_run_cmd_callback): don't
	blindly pass RUN-MODE,IMAGE,DRAWABLE to GIMP_PLUGIN procedures but
	look at their parameters and pass them either RUN-MODE, or
	RUN-MODE,IMAGE, or RUN-MODE,IMAGE,DRAWABLE.

	* app/pdb/procedural_db.c: cleaned up, better error reporting,
	replaced an impossible error message by g_return_if_fail()

	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install):
	better error messages.

	* app/plug-in/plug-in-params.c: allocate parameter arrays using
	g_new0() so we don't have to worry about uninitialized stuff
	later.

	* app/plug-in/plug-in-run.c (plug_in_run): wait for
	gimp_extension_ack() installation confirmation for ALL extensions,
	not just for automatically started ones.

	* app/plug-in/plug-ins.c: cleanup.

	* libgimp/gimp.[ch]: cleaned up and API-documented massively. Made
	all magic values given in the GPConfig message static and added
	accessor functions for them. Added gimp_tile_width()/height().
	Added new function gimp_extension_enable() which turns on
	asynchronous processing of temp_proc run requests without having
	to enter an endless gimp_extension_process() loop. Moved all
	private functions to the end of the file. Added tons of
	g_return_if_fail() all over the place.  Call gimp_run_procedure2()
	from gimp_run_procedure() instead of duplicating the
	code. Indentation, spacing, stuff...

	* libgimp/gimptile.[ch]: removed gimp_tile_width()/height().

	* libgimp/gimpdrawable.c
	* libgimp/gimppixelrgn.c
	* libgimp/gimptile.c: use the gimp_tile_width()/height() accessor
	functions.

	* libgimp/gimp.def: added gimp_extension_enable.

	* libgimp/gimpmenu.c: removed evil code which connected to
	_readchannel manually and use gimp_extension_enable() for watching
	temp_procs.

	* plug-ins/helpbrowser/helpbrowser.c: removed the same evil code
	here and call gimp_extension_enable(). Call gimp_extension_ack()
	to let the core know that the temp_proc is installed.

	* plug-ins/script-fu/script-fu.c: made all procedures except the
	permanently running "extension_script_fu" ordinary GIMP_PLUGIN
	procedures.

	* plug-ins/common/curve_bend.c
	* plug-ins/common/plugindetails.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/uniteditor.c
	* plug-ins/common/winclipboard.c
	* plug-ins/dbbrowser/dbbrowser.c
	* plug-ins/gfli/gfli.c
	* plug-ins/twain/twain.c
	* plug-ins/webbrowser/webbrowser.c
	* plug-ins/winsnap/winsnap.c: made them all ordinary GIMP_PLUGIN
	procedures and renamed them from "extension_*" to "plug_in_*".
	Random cleanups.

	* app/widgets/gimphelp.c
	* plug-ins/maze/maze_face.c: call "plug_in_web_browser" now.
2003-06-19 17:12:00 +00:00
..
.cvsignore added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
Makefile.am added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
gimpenvirontable.c Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
gimpenvirontable.h added some rudimentary support to prepend values to existing environment 2002-12-18 02:47:39 +00:00
gimpplugin-message.c Changed the semantics of GIMP_EXTENSION and (to some extent) of 2003-06-19 17:12:00 +00:00
gimpplugin-message.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
gimpplugin-progress.c added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
gimpplugin-progress.h renamed plug_in_progress_init() to plug_in_progress_start() so it matches 2003-01-20 12:17:32 +00:00
gimpplugin.c wait 10 ms before killing the plug-in just like the comment says. The code 2003-05-13 11:44:28 +00:00
gimpplugin.h added plug_ins_proc_def_find() which takes a ProcRecord and returns the 2003-02-18 14:08:14 +00:00
gimpplugindebug.c added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
gimpplugindebug.h added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
gimppluginmanager-call.c Changed the semantics of GIMP_EXTENSION and (to some extent) of 2003-06-19 17:12:00 +00:00
gimppluginmanager-call.h added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
gimppluginmanager-run.c Changed the semantics of GIMP_EXTENSION and (to some extent) of 2003-06-19 17:12:00 +00:00
gimppluginmanager-run.h added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
gimppluginmanager.c Changed the semantics of GIMP_EXTENSION and (to some extent) of 2003-06-19 17:12:00 +00:00
gimppluginmanager.h added plug_ins_proc_def_find() which takes a ProcRecord and returns the 2003-02-18 14:08:14 +00:00
gimppluginprocedure.c added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
gimppluginprocedure.h One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
gimppluginshm.c #include <sys/types.h> for ipc/shm headers. (Bug #106461) 2003-02-18 22:47:13 +00:00
gimppluginshm.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
makefile.msc app/text/makefile.msc (new file) */makefile.msc */*/makefile.msc : updated 2003-03-03 18:14:31 +00:00
plug-in-debug.c added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
plug-in-debug.h added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
plug-in-def.c renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
plug-in-def.h One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
plug-in-message.c Changed the semantics of GIMP_EXTENSION and (to some extent) of 2003-06-19 17:12:00 +00:00
plug-in-message.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
plug-in-params.c Changed the semantics of GIMP_EXTENSION and (to some extent) of 2003-06-19 17:12:00 +00:00
plug-in-params.h badly chopped into the new files below. Pass around much more "PlugIn" and 2002-03-20 17:46:13 +00:00
plug-in-proc-def.c added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
plug-in-proc-def.h One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
plug-in-proc.c added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
plug-in-proc.h One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
plug-in-progress.c added hooks for running plug-ins under a memory debugger. Also, removed 2003-02-11 01:21:21 +00:00
plug-in-progress.h renamed plug_in_progress_init() to plug_in_progress_start() so it matches 2003-01-20 12:17:32 +00:00
plug-in-rc.c Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
plug-in-rc.h fixed creation of config file, added new function 2003-03-10 15:48:16 +00:00
plug-in-run.c Changed the semantics of GIMP_EXTENSION and (to some extent) of 2003-06-19 17:12:00 +00:00
plug-in-run.h added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
plug-in-shm.c #include <sys/types.h> for ipc/shm headers. (Bug #106461) 2003-02-18 22:47:13 +00:00
plug-in-shm.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
plug-in-types.h added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
plug-in.c wait 10 ms before killing the plug-in just like the comment says. The code 2003-05-13 11:44:28 +00:00
plug-in.h added plug_ins_proc_def_find() which takes a ProcRecord and returns the 2003-02-18 14:08:14 +00:00
plug-ins.c Changed the semantics of GIMP_EXTENSION and (to some extent) of 2003-06-19 17:12:00 +00:00
plug-ins.h added plug_ins_proc_def_find() which takes a ProcRecord and returns the 2003-02-18 14:08:14 +00:00