Gimp/tools/pdbgen/pdb
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
..
brush.pdb Bill Skaggs <weskaggs@primate.ucdavis.edu> 2004-12-31 19:48:29 +00:00
brush_select.pdb app/gui/Makefile.am app/gui/brush-select.[ch] app/gui/font-select.[ch] 2004-07-09 19:14:59 +00:00
brushes.pdb Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
channel.pdb add the gimp_channel_new_from_component() PDB function. 2005-02-22 17:58:36 +00:00
color.pdb applied patch from Karine Delvare which adds gimp_desaturate_full(). Fixes 2005-04-19 20:31:30 +00:00
context.pdb oops, should probably pop, not push a context in gimp_context_pop(). 2004-09-23 00:11:13 +00:00
convert.pdb handle a NULL palette with GIMP_CUSTOM_PALETTE type, use the builtin mono 2005-04-12 23:46:10 +00:00
display.pdb Address bug #307971: 2005-09-05 20:47:12 +00:00
drawable.pdb added a progress parameter. 2005-07-29 03:28:27 +00:00
drawable_transform.pdb changed all transform utilities to modify the passed transform matrix 2005-03-21 19:10:11 +00:00
edit.pdb applied patch from David Gowers which adds "gimp-edit-named-delete". 2005-09-05 18:59:19 +00:00
fileops.pdb Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
floating_sel.pdb removed gimp_image_owns_item() again. 2004-01-26 16:18:16 +00:00
font_select.pdb app/gui/Makefile.am app/gui/brush-select.[ch] app/gui/font-select.[ch] 2004-07-09 19:14:59 +00:00
fonts.pdb tools/pdbgen/pdb/brushes.pdb tools/pdbgen/pdb/gradients.pdb 2004-09-23 15:05:48 +00:00
gimprc.pdb allow to access (read-only) the current color management configuration 2005-06-26 12:53:31 +00:00
gradient.pdb removed the "last_visited" field from GimpGradient. Instead added the new 2005-02-26 23:55:50 +00:00
gradient_select.pdb app/gui/Makefile.am app/gui/brush-select.[ch] app/gui/font-select.[ch] 2004-07-09 19:14:59 +00:00
gradients.pdb Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
guides.pdb include "libgimpbase/gimpbase.h" instead of "libgimpbase/gimpparasite.h" 2004-07-16 14:43:56 +00:00
help.pdb Removed any remaining GUI dependency from the PDB wrappers: 2004-07-10 20:29:11 +00:00
image.pdb Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
layer.pdb app/actions/layers-actions.c app/actions/layers-commands.[ch] 2005-07-10 21:17:22 +00:00
message.pdb added "message" function to the GimpProgress interface. Call 2004-10-14 15:15:03 +00:00
misc.pdb on Win32, include <process.h> for getpid(). 2005-07-25 12:59:53 +00:00
paint_tools.pdb app/core/gimpchannel-select.c app/core/gimpchannel.c 2004-11-16 13:41:55 +00:00
palette.pdb renamed again, to gimp_palette_[gs]et_columns this time. 2005-03-09 00:50:09 +00:00
palette_select.pdb app/gui/Makefile.am app/gui/brush-select.[ch] app/gui/font-select.[ch] 2004-07-09 19:14:59 +00:00
palettes.pdb Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
parasite.pdb Default all strings to validate UTF-8, use no_validate to disable. Also 2003-08-19 19:08:11 +00:00
paths.pdb use boolean values to indicate whether a path is linked ("locked"). 2005-03-03 11:10:37 +00:00
pattern.pdb return the mask's bpp and the brush's pixmap data if it has one. 2004-10-06 03:23:09 +00:00
pattern_select.pdb app/gui/Makefile.am app/gui/brush-select.[ch] app/gui/font-select.[ch] 2004-07-09 19:14:59 +00:00
patterns.pdb Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
plug_in.pdb Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
procedural_db.pdb added GIMP_UNDO_FOREGROUND_SELECT. 2005-08-03 01:54:27 +00:00
progress.pdb Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
selection.pdb added GimpPickable::get_opacity_at() 2005-07-11 19:21:52 +00:00
selection_tools.pdb Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
text_tool.pdb Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
transform_tools.pdb Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
undo.pdb removed gimp_image_undo_*() functions... 2003-12-05 14:45:23 +00:00
unit.pdb Default all strings to validate UTF-8, use no_validate to disable. Also 2003-08-19 19:08:11 +00:00
vectors.pdb cosmetic change: Make the stroke IDs start from 1. 2005-06-01 16:20:46 +00:00