gimp/app/plug-in
Michael Natterer b10adabb5e Added parent window API to the GimpProgress interface and to the libgimp
2005-09-09  Michael Natterer  <mitch@gimp.org>

	Added parent window API to the GimpProgress interface and to
	the libgimp progress stuff. Might look strange, but does
	the right thing in almost all cases (image window, file dialog,
	script-fu dialog etc). Fixes bug #62988.

	* app/core/gimpprogress.[ch]: added GimpProgress::get_window()
	which should return a toplevel window ID if the progress is in a
	window that wants to be the transient parent of plug-in dialogs.

	* app/widgets/gimpwidgets-utils.[ch] (gimp_window_get_native): new
	function which returns the window handle of a GtkWindow's GdkWindow.

	* app/widgets/gimpfiledialog.c: implement ::get_window().

	* app/display/gimpdisplay.[ch]: ditto. Removed window handle API.

	* app/gui/gui-vtable.c: changed accordingly.

	* libgimpbase/gimpbaseenums.[ch] (enum GimpProgressCommand):
	added GIMP_PROGRESS_COMMAND_GET_WINDOW.

	* app/plug-in/plug-in-progress.[ch] (plug_in_progress_get_window):
	new function. Also renamed some functions to match the
	GimpProgress interface, and not the legacy PDB procedure names.

	* tools/pdbgen/pdb/progress.pdb
	* app/core/gimppdbprogress.c: implement get_window() on both
	sides of the wire, keeping backward compatibility (hopefully).

	* libgimp/gimpprogress.[ch]: deprecated gimp_progress_install()
	and added gimp_progress_install_vtable() which takes a vtable with
	padding to be extensible. Added get_window() vtable entry and
	dispatch it accordingly. Also added pulse() which was implemented
	in a hackish way before. Everything is of course backward
	compatible.

	* libgimp/gimpprogressbar.c: inmplement the get_window() stuff
	so a plug-in dialog containing a progress can be the transient
	parent of another dialog in another plug-in.

	* libgimp/gimpui.[ch] (gimp_ui_get_progress_window): new function
	which returns a foreign GdkWindow of this plug-ins progress
	window.

	Renamed gimp_window_set_transient_for_default_display() to
	gimp_window_set_transient() and make it use the progress' window
	handle instead of the display's (which is the right thing to do in
	almost all cases).

	* libgimp/gimp.def
	* libgimp/gimpui.def: add the new functions.

	* tools/pdbgen/enums.pl
	* app/pdb/internal_procs.c
	* app/pdb/progress_cmds.c
	* libgimp/gimpprogress_pdb.[ch]: regenerated.

	* libgimp/gimpexport.c
	* plug-ins/*/*.c: follow API change.
2005-09-09 18:07: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 app/plug-in/Makefile.am new files containing plug_ins_query(). 2005-04-05 21:10:55 +00:00
gimpenvirontable.c feed environment values through gimp_config_path_expand, so ${gimp..} 2005-06-26 23:20:21 +00:00
gimpenvirontable.h added some rudimentary support to prepend values to existing environment 2002-12-18 02:47:39 +00:00
gimpinterpreterdb.c eat CRs too, since they might be there on Win32 systems. 2005-06-25 23:34:25 +00:00
gimpinterpreterdb.h Support for custom plug-in interpreters, independent of OS support. 2005-02-21 02:56:29 +00:00
gimpplugin-context.c removed assertion about proc_rec != NULL because that happens when 2004-09-22 16:22:43 +00:00
gimpplugin-context.h tools/pdbgen/Makefile.am new files that will hold context related PDB 2004-09-22 15:26:58 +00:00
gimpplugin-message.c canonicalize proc args registered by plug-ins. 2005-08-05 20:23:37 +00:00
gimpplugin-message.h app/plug-in/Makefile.am removed... ...and added with a new name. 2004-09-22 15:12:24 +00:00
gimpplugin-progress.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
gimpplugin-progress.h Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
gimpplugin.c Instead of passing a child_setup function whose body is ifdeffed out on 2005-08-26 12:03:24 +00:00
gimpplugin.h added "gint ref_count" to the PlugInProcFrame struct. Added new functions 2004-12-14 22:42:00 +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 naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimppluginmanager-call.h app/plug-in/Makefile.am removed... ...and added with a new name. 2004-09-22 15:12:24 +00:00
gimppluginmanager-query.c reverted previous change, it was bogus. 2005-07-06 01:29:14 +00:00
gimppluginmanager-query.h app/plug-in/Makefile.am new files containing plug_ins_query(). 2005-04-05 21:10:55 +00:00
gimppluginmanager-run.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimppluginmanager-run.h app/plug-in/Makefile.am removed... ...and added with a new name. 2004-09-22 15:12:24 +00:00
gimppluginmanager.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimppluginmanager.h Added API to explicitly register dynamic menu items hierarchies. Fixes bug 2005-03-24 16:08:04 +00:00
gimppluginprocedure.c removed s/_/-/, proc names are already canonicalized. 2005-08-12 00:51:43 +00:00
gimppluginprocedure.h new function which finds a proc_def in a GSList by its procedure name. 2005-05-04 18:53:58 +00:00
gimppluginprocframe.c made plug_in_proc_frame_free() a static function. 2004-12-23 15:13:51 +00:00
gimppluginprocframe.h made plug_in_proc_frame_free() a static function. 2004-12-23 15:13:51 +00:00
gimppluginshm.c libgimp/gimp.c close the shm_open fd in the POSIX shm case. We were 2004-03-25 09:02:28 +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 build menus with nmake, too menus/Makefile.am : added to EXTRA_DIST 2005-04-24 15:39:15 +00:00
plug-in-context.c removed assertion about proc_rec != NULL because that happens when 2004-09-22 16:22:43 +00:00
plug-in-context.h tools/pdbgen/Makefile.am new files that will hold context related PDB 2004-09-22 15:26:58 +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 new function which finds a proc_def in a GSList by its procedure name. 2005-05-04 18:53:58 +00:00
plug-in-def.h app/plug-in/Makefile.am removed... ...and added with a new name. 2004-09-22 15:12:24 +00:00
plug-in-enums.h ooops 2005-01-22 23:51:12 +00:00
plug-in-message.c canonicalize proc args registered by plug-ins. 2005-08-05 20:23:37 +00:00
plug-in-message.h app/plug-in/Makefile.am removed... ...and added with a new name. 2004-09-22 15:12:24 +00:00
plug-in-params.c Fix a bunch of warnings from Sparse: 2004-11-14 02:50:33 +00:00
plug-in-params.h Changed plug-in menu registration again to allow passing just the menu 2004-05-07 00:30:24 +00:00
plug-in-proc-def.c removed s/_/-/, proc names are already canonicalized. 2005-08-12 00:51:43 +00:00
plug-in-proc-def.h new function which finds a proc_def in a GSList by its procedure name. 2005-05-04 18:53:58 +00:00
plug-in-proc-frame.c made plug_in_proc_frame_free() a static function. 2004-12-23 15:13:51 +00:00
plug-in-proc-frame.h made plug_in_proc_frame_free() a static function. 2004-12-23 15:13:51 +00:00
plug-in-progress.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
plug-in-progress.h Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
plug-in-rc.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
plug-in-rc.h app/plug-in/Makefile.am removed... ...and added with a new name. 2004-09-22 15:12:24 +00:00
plug-in-run.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
plug-in-run.h app/plug-in/Makefile.am removed... ...and added with a new name. 2004-09-22 15:12:24 +00:00
plug-in-shm.c libgimp/gimp.c close the shm_open fd in the POSIX shm case. We were 2004-03-25 09:02:28 +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 API to explicitly register dynamic menu items hierarchies. Fixes bug 2005-03-24 16:08:04 +00:00
plug-in.c Instead of passing a child_setup function whose body is ifdeffed out on 2005-08-26 12:03:24 +00:00
plug-in.h added "gint ref_count" to the PlugInProcFrame struct. Added new functions 2004-12-14 22:42:00 +00:00
plug-ins-query.c reverted previous change, it was bogus. 2005-07-06 01:29:14 +00:00
plug-ins-query.h app/plug-in/Makefile.am new files containing plug_ins_query(). 2005-04-05 21:10:55 +00:00
plug-ins.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
plug-ins.h Added API to explicitly register dynamic menu items hierarchies. Fixes bug 2005-03-24 16:08:04 +00:00