gimp/app/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
..
.cvsignore changed destdir for app-side PDB wrappers to app/pdb 2001-01-21 21:58:16 +00:00
brush_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
brush_select_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
brushes_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
channel_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
color_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
context_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
convert_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
display_cmds.c Address bug #307971: 2005-09-05 20:47:12 +00:00
drawable_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
drawable_transform_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
edit_cmds.c applied patch from David Gowers which adds "gimp-edit-named-delete". 2005-09-05 18:59:19 +00:00
fileops_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
floating_sel_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
font_select_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
fonts_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
gimp-pdb-query.c reverted previous change, it was bogus. 2005-07-06 01:29:14 +00:00
gimp-pdb-query.h app/pdb/Makefile.am new files containing all the evil string matching and 2005-05-14 23:28:52 +00:00
gimp-pdb.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimp-pdb.h Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimppdb-query.c reverted previous change, it was bogus. 2005-07-06 01:29:14 +00:00
gimppdb-query.h app/pdb/Makefile.am new files containing all the evil string matching and 2005-05-14 23:28:52 +00:00
gimppdb.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimppdb.h Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimppluginprocedure.c removed s/_/-/, proc names are already canonicalized. 2005-08-12 00:51:43 +00:00
gimppluginprocedure.h new function which finds a proc_def in a GSList by its procedure name. 2005-05-04 18:53:58 +00:00
gimpprocedure.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimpprocedure.h Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
gimprc_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
gradient_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
gradient_select_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
gradients_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
guides_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
help_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
image_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
internal_procs.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
internal_procs.h fix spelling of "quality" in comment 2003-07-03 00:47:26 +00:00
layer_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
Makefile.am app/pdb/Makefile.am new files containing all the evil string matching and 2005-05-14 23:28:52 +00:00
makefile.msc updated dont include "gimpmessagedialog.c" to avoid redefinitions. Instead 2005-07-10 16:24:57 +00:00
message_cmds.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
misc_cmds.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
paint_tools_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
palette_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
palette_select_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
palettes_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
parasite_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
paths_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
pattern_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
pattern_select_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
patterns_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
pdb-types.h added enum GimpPDBCompatMode which can be one of { OFF, ON, WARN }. 2003-12-05 17:08:35 +00:00
pdb_glue.h app/core/core-enums.[ch] app/core/gimpimage-undo-push.[ch] eek, my 2005-03-24 22:34:36 +00:00
plug_in_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
procedural-db-query.c reverted previous change, it was bogus. 2005-07-06 01:29:14 +00:00
procedural-db-query.h app/pdb/Makefile.am new files containing all the evil string matching and 2005-05-14 23:28:52 +00:00
procedural_db.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
procedural_db.h Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
procedural_db_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
progress_cmds.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
README Added another warning about autogenerated files 2001-01-21 22:28:16 +00:00
selection_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
selection_tools_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
text_tool_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
transform_tools_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
undo_cmds.c Changed naming scheme for PDB procedure names from 2005-08-02 22:52:23 +00:00
unit_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00
vectors_cmds.c store canonical names of proc names and args in the proc structure. 2005-08-05 18:19:09 +00:00

This directory contains the PDB-wrappers for various internal
Gimp functions.

THESE FILES ARE AUTOGENERATED AND CHANGES HERE ARE USELESS!

If you need to change the code please have a look in ../../tools/pdbgen/pdb.