gimp/app
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
..
actions app/actions/edit-actions.c app/menus/menus.c app/widgets/gimpundoeditor.c 2005-09-05 19:31:28 +00:00
base do new_size calculation only when needed. 2005-09-03 21:56:07 +00:00
composite ypto 2005-08-01 05:19:45 +00:00
config changed to "mozilla-firefox %s" (was "mozilla %s"). 2005-08-19 17:11:02 +00:00
core Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
dialogs don't set a window icon, the dialog should be transient anyway. 2005-09-07 00:28:31 +00:00
display Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
file added GIMP_UNDO_FOREGROUND_SELECT. 2005-08-03 01:54:27 +00:00
gui Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
menus app/actions/edit-actions.c app/menus/menus.c app/widgets/gimpundoeditor.c 2005-09-05 19:31:28 +00:00
paint replaced manual calculation of the offset of a pixel in a tile (marked as 2005-09-03 20:39:17 +00:00
paint-funcs Bill Skaggs <weskaggs@primate.ucdavis.edu> 2005-09-06 17:58:55 +00:00
pdb Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
plug-in Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
text define G_DISABLE_DEPRECATED unless glib >= 2.9.0. 2005-08-16 00:48:20 +00:00
tools terminate variable argument list. Fixes bug #315255. 2005-09-05 10:11:19 +00:00
vectors fixed a typo: s/occured/occurred/g 2005-08-21 20:28:05 +00:00
widgets Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
xcf disable undo while the image is being loaded. 2005-08-05 14:13:10 +00:00
.cvsignore tools/Makefile.am build binaries with 2.3 versions. 2004-12-31 00:30:26 +00:00
Makefile.am fixed dist-dump-gimprc rule. 2005-08-09 23:58:32 +00:00
airbrush.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
app_procs.c call g_thread_init() only if the GThread system is not already 2005-04-25 17:13:10 +00:00
app_procs.h app/app_procs.[ch] app/gui/gui.[ch] simplified initialization by passing 2005-02-08 22:57:24 +00:00
batch.c canonicalize hardcoded procedure names. 2005-08-06 00:51:22 +00:00
batch.h app/app_procs.[ch] app/batch.[ch] added new command-line option 2004-10-06 09:56:15 +00:00
errors.c Added a conditional definition of the preprocessor symbol GIMP_UNSTABLE if 2004-02-05 00:34:50 +00:00
errors.h unref the gimp object after dumping the configuration as a test for 2003-11-17 00:17:01 +00:00
fileicon.ico New Win32 icons contributed by Jernej Simoncic: 2004-11-06 11:39:42 +00:00
gimp-intl.h Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
gimp.rc [new file] app/dialogs/Makefile.am : added to EXTRA_DIST 2004-11-21 14:22:45 +00:00
gimpcore.def updated dont include "gimpmessagedialog.c" to avoid redefinitions. Instead 2005-07-10 16:24:57 +00:00
main.c improved "--help" output. 2005-04-06 13:15:38 +00:00
makefile.msc TILE_WIDTH is used unconditionally so always include "tile.h" WIN32 needs 2005-02-19 00:50:36 +00:00
paint_core.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
paint_options.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
plug_in_cmds.c Garry R. Osgood <grosgood@rcn.com> 2001-03-11 13:15:41 +00:00
sanity.c made the G_FILENAME_ENCODING not or incorrectly set error message more 2005-05-25 23:21:06 +00:00
sanity.h removed the gtk+ sanity check here ... 2004-07-12 13:22:28 +00:00
transform_core.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
units.c app/units.c app/core/gimp-units.c app/core/gimp.c added a utility function 2005-01-13 13:08:00 +00:00
units.h libgimpbase/Makefile.am libgimpbase/gimpbase-private.[ch] new files 2003-11-15 22:53:28 +00:00
wilber.ico New Win32 icons contributed by Jernej Simoncic: 2004-11-06 11:39:42 +00:00