mirror of https://github.com/GNOME/gimp.git
2db2ef6185
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. |
||
---|---|---|
.. | ||
.cvsignore | ||
Makefile.am | ||
gimpenvirontable.c | ||
gimpenvirontable.h | ||
gimpplugin-message.c | ||
gimpplugin-message.h | ||
gimpplugin-progress.c | ||
gimpplugin-progress.h | ||
gimpplugin.c | ||
gimpplugin.h | ||
gimppluginmanager-call.c | ||
gimppluginmanager-call.h | ||
gimppluginmanager-run.c | ||
gimppluginmanager-run.h | ||
gimppluginmanager.c | ||
gimppluginmanager.h | ||
gimppluginprocedure.c | ||
gimppluginprocedure.h | ||
gimppluginshm.c | ||
gimppluginshm.h | ||
makefile.msc | ||
plug-in-def.c | ||
plug-in-def.h | ||
plug-in-message.c | ||
plug-in-message.h | ||
plug-in-params.c | ||
plug-in-params.h | ||
plug-in-proc-def.c | ||
plug-in-proc-def.h | ||
plug-in-proc.c | ||
plug-in-proc.h | ||
plug-in-progress.c | ||
plug-in-progress.h | ||
plug-in-rc.c | ||
plug-in-rc.h | ||
plug-in-run.c | ||
plug-in-run.h | ||
plug-in-shm.c | ||
plug-in-shm.h | ||
plug-in-types.h | ||
plug-in.c | ||
plug-in.h | ||
plug-ins.c | ||
plug-ins.h |