gimp/libgimpbase
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 Additions for Win32: Use -no-undefined. Use the gimpbase.def file. Produce 2002-03-29 23:10:18 +00:00
Makefile.am renamed localedir to gimplocaledir. 2005-04-04 23:06:32 +00:00
gimpbase-private.c libgimpbase/Makefile.am libgimpbase/gimpbase.h libgimpbase/gimpbase.def 2004-07-27 16:39:00 +00:00
gimpbase-private.h libgimpbase/Makefile.am libgimpbase/gimpbase-private.[ch] new files 2003-11-15 22:53:28 +00:00
gimpbase.def Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimpbase.h libgimpbase/Makefile.am removed these two files again. 2005-01-25 23:44:05 +00:00
gimpbaseenums.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
gimpbaseenums.h Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
gimpbasetypes.c libgimpbase/Makefile.am removed these two files again. 2005-01-25 23:44:05 +00:00
gimpbasetypes.h libgimpbase/Makefile.am removed these two files again. 2005-01-25 23:44:05 +00:00
gimpchecks.c libgimpbase/gimpchecks.h moved check size and check color defines. It 2004-09-03 11:18:56 +00:00
gimpchecks.h libgimp/gimpunitcache.h libgimpbase/gimpchecks.h 2004-11-04 10:51:55 +00:00
gimpcpuaccel.c detect SSE3. 2005-06-07 07:10:22 +00:00
gimpcpuaccel.h detect SSE3. 2005-06-07 07:10:22 +00:00
gimpdatafiles.c Practice what I preach and use g_ascii_strcasecmp() instead of 2005-09-09 14:17:01 +00:00
gimpdatafiles.h libgimp/gimpunitcache.h libgimpbase/gimpchecks.h 2004-11-04 10:51:55 +00:00
gimpenv.c Make GIMP work on Win32 even if installed in a path containing random 2005-08-24 22:02:02 +00:00
gimpenv.h libgimpbase/gimpdatafiles.[ch] libgimpbase/gimpenv.[ch] 2003-11-23 15:35:27 +00:00
gimplimits.h libgimp/gimpunitcache.h libgimpbase/gimpchecks.h 2004-11-04 10:51:55 +00:00
gimpmemsize.c libgimpbase/Makefile.am removed this file again. 2005-01-23 02:09:41 +00:00
gimpmemsize.h libgimpbase/Makefile.am removed this file again. 2005-01-23 02:09:41 +00:00
gimpparasite.c removed enums GimpImageType and GimpImageBaseType ... 2004-07-29 12:33:15 +00:00
gimpparasite.h libgimp/gimp.h libgimp/gimpbrushmenu.h libgimp/gimpbrushselect.[ch] 2003-12-05 15:55:15 +00:00
gimpparasiteio.c cosmetics, untabified. 2004-11-23 14:28:43 +00:00
gimpparasiteio.h cosmetics, untabified. 2004-11-23 14:28:43 +00:00
gimpprotocol.c formatting. 2005-01-15 11:55:34 +00:00
gimpprotocol.h app/config/gimpguiconfig.[ch] added gimprc option "show-help-button". 2004-10-04 16:21:52 +00:00
gimpsignal.c libgimp/gimp.h libgimp/gimpbrushmenu.h libgimp/gimpbrushselect.[ch] 2003-12-05 15:55:15 +00:00
gimpsignal.h bumped version number to 2.0pre3 (1.3.26), binary age 2, interface age 0. 2004-01-19 17:35:20 +00:00
gimpunit.c libgimpbase/Makefile.am removed this file again. 2005-01-23 02:09:41 +00:00
gimpunit.h libgimpbase/Makefile.am removed this file again. 2005-01-23 02:09:41 +00:00
gimputils.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimputils.h sync parameter name with implementation to please gtk-doc. 2005-08-25 16:19:54 +00:00
gimpwin32-io.h TILE_WIDTH is used unconditionally so always include "tile.h" WIN32 needs 2005-02-19 00:50:36 +00:00
gimpwire.c added assertions to make sure "count" is always >= 0. Turns the crash 2004-10-04 13:25:33 +00:00
gimpwire.h libgimpbase/gimpprotocol.[ch] pass "gpointer user_data" to all functions, 2002-05-16 17:41:38 +00:00
makefile.msc [new file] app/dialogs/Makefile.am : added to EXTRA_DIST 2004-11-21 14:22:45 +00:00