gimp/app/plug-in
Michael Natterer 2db2ef6185 removed gimp_main_loop() and gimp_main_loop_quit() because they were a
2003-02-03  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp.[ch]: removed gimp_main_loop() and
	gimp_main_loop_quit() because they were a temp_hack until plug-ins
	have their own main loops. Added gimp_threads_enter() and
	gimp_threads_leave() instead.

	* app/gui/gui.c: ditto: removed the main loop stuff and added
	functions which call GDK_THREADS_ENTER() and GDK_THREADS_LEAVE()
	instead.

	* app/app_procs.c: create the main GMainLoop here and use
	gimp_threads_enter,leave().

	* app/plug-in/plug-in.[ch]: added a ref_count per plug-in so the
	plug-in is not destroyed under our feet while running a recursive
	main loop. Added plug_in_ref(). Changed plug_in_destroy() to
	plug_in_unref(). Don't destroy the plug-in if plug_in_open()
	fails. Call gimp_threads_enter,leave() around g_main_loop_run().
	Changed the way plug_in_push,pop() are used: "current_plug_in" is
	no longer the plug-in which currently uses the wire, but the
	plug-in which currently preforms a PDB call (the former meaning
	was needed when wire callbacks had no plug-in context but needed
	to get the plug-in from the global "current_plug_in" variable).
	Removed all calls to plug_in_push,pop() from this file.

	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): added
	plug_in_push,pop() around procedural_db_execute(). No need
	to construct an error return value if the procedure was not found
	because procedural_db_execute() already does this.

	Removed all other plug_in_push,pop(). Added more checks to plug-in
	message handlers and kill the plug-in if it misbehaves. Cleanup.

	* app/plug-in/plug-in-progress.c (plug_in_progress_cancel): if the
	plug-in runs synchronously, provide a GIMP_PDB_CANCEL return value
	so we don't see error messages about the "failed" procedure.

	* app/plug-in/plug-in-run.c: removed plug_in_push,pop() stuff.
	Set the new plug_in->starting_ext boolean while starting an
	extension so the extension_ack handler knows that it wasn't called
	from a buggy plug-in. Cleanup.

	* app/plug-in/plug-ins.c: Cleanup.
2003-02-03 13:21:31 +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 renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
gimpenvirontable.c added some rudimentary support to prepend values to existing environment 2002-12-18 02:47:39 +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 removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +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 removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +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 removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +00:00
gimpplugin.h removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +00:00
gimppluginmanager-call.c removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +00:00
gimppluginmanager-call.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
gimppluginmanager-run.c removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +00:00
gimppluginmanager-run.h renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +00:00
gimppluginmanager.c removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +00:00
gimppluginmanager.h One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
gimppluginprocedure.c One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
gimppluginprocedure.h One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
gimppluginshm.c renamed plug_in->busy to plug_in->in_temp_proc. Added a stack of 2003-01-30 11:20:12 +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 when checking for 'excecutable' make sure it is a regular file too (on 2003-01-01 13:33:27 +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 removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +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 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.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 One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +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 One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +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 removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +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 One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
plug-in-rc.h write comment to top of gimprc. 2001-12-28 22:58:14 +00:00
plug-in-run.c removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +00:00
plug-in-run.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-shm.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-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 The unbelievable happened: a menu bar per display (optionally) 2002-12-10 16:38:16 +00:00
plug-in.c removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +00:00
plug-in.h removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +00:00
plug-ins.c removed gimp_main_loop() and gimp_main_loop_quit() because they were a 2003-02-03 13:21:31 +00:00
plug-ins.h One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00