gimp/plug-ins/rcm
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
..
images plug-ins/Lighting/images/Makefile.am plug-ins/gfig/images/Makefile.am 2005-04-20 20:19:14 +00:00
.cvsignore Added the rcm plugin. 1999-04-05 20:31:20 +00:00
Makefile.am Bill Skaggs <weskaggs@primate.ucdavis.edu> 2005-02-23 22:01:58 +00:00
rcm.c app/actions/image-actions.c app/tools/gimpaligntool.c 2005-08-16 01:08:06 +00:00
rcm.h plug-ins/bmp/bmp.c plug-ins/faxg3/faxg3.c plug-ins/fits/fits.c 2005-08-12 15:46:46 +00:00
rcm_callback.c plug-ins/rcm/rcm_callback.c plug-ins/rcm/rcm_dialog.c redraw the previews 2005-08-15 11:33:32 +00:00
rcm_callback.h plug-ins/rcm/rcm_callback.[ch] ported from GtkOptionMenu to 2004-04-22 15:54:59 +00:00
rcm_dialog.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
rcm_dialog.h plug-ins/rcm/rcm.h rearranged and HIG-ified dialog. 2004-05-24 22:01:56 +00:00
rcm_gdk.c plug-ins/FractalExplorer plug-ins/Lighting plug-ins/bmp plug-ins/dbbrowser 2005-03-04 13:23:32 +00:00
rcm_gdk.h fixed help ID. 2004-01-30 11:53:28 +00:00
rcm_misc.c plug-ins/rcm/rcm_callback.c plug-ins/rcm/rcm_dialog.c redraw the previews 2005-08-15 11:33:32 +00:00
rcm_misc.h plug-ins/rcm/rcm_callback.c plug-ins/rcm/rcm_dialog.c redraw the previews 2005-08-15 11:33:32 +00:00
rcm_stock.c applied capitalization patches contributed by Stephan Binner. Fixes bug 2005-08-23 00:18:08 +00:00
rcm_stock.h plug-ins/rcm/Makefile.am plug-ins/rcm/rcm_callback.c 2004-11-17 10:44:02 +00:00