gimp/app/gui
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 configure.in app/Makefile.am new directory which will contain all gui code 2001-04-14 15:21:45 +00:00
color-history.c continuing commit after broken pipe 2005-01-25 19:11:26 +00:00
color-history.h app/gui/color-history.[ch] app/gui/gui.c moved the color history out of 2003-11-13 15:25:38 +00:00
gui-types.h configure.in added new directory app/dialogs and link libappdialogs.c into 2004-09-13 15:15:23 +00:00
gui-vtable.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
gui-vtable.h Cleaned up the app init and exit stuff even more. Also reduces the number 2003-10-02 11:26:26 +00:00
gui.c app/dialogs/module-dialog.c app/dialogs/palette-import-dialog.c 2005-08-03 09:34:55 +00:00
gui.h app/app_procs.[ch] app/gui/gui.[ch] simplified initialization by passing 2005-02-08 22:57:24 +00:00
Makefile.am check for gthread-2.0 unless the --disable-mp option is given. 2005-02-13 15:08:08 +00:00
makefile.msc [new file] app/dialogs/Makefile.am : added to EXTRA_DIST 2004-11-21 14:22:45 +00:00
session.c app/base/base.c app/base/temp-buf.c app/base/tile-swap.c 2005-02-07 01:24:22 +00:00
session.h Enabled the various "Clear saved foobar now" buttons in prefs: 2004-07-21 16:11:31 +00:00
splash.c deprecated RGB intensity functions and definitions. These coefficients do 2005-08-03 00:36:41 +00:00
splash.h splash image for GIMP 2.0 by Jimmac. 2004-03-15 00:17:21 +00:00
themes.c app/config/gimpconfig-file.c app/file/file-utils.c app/gui/themes.c 2005-02-07 01:38:18 +00:00
themes.h new utility function which takes a filename relative to the theme's root 2003-11-15 17:53:18 +00:00