gimp/plug-ins/MapObject
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
arcball.c
arcball.h
CHANGES
Makefile.am Bill Skaggs <weskaggs@primate.ucdavis.edu> 2005-02-04 22:31:58 +00:00
mapobject_apply.c
mapobject_apply.h
mapobject_image.c
mapobject_image.h
mapobject_main.c
mapobject_main.h
mapobject_preview.c
mapobject_preview.h
mapobject_shade.c
mapobject_shade.h
mapobject_stock.c plug-ins/rcm/Makefile.am plug-ins/rcm/rcm_callback.c 2004-11-17 10:44:02 +00:00
mapobject_stock.h
mapobject_ui.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
mapobject_ui.h
README
TODO

MapObject 1.2.0 -- image filter plug-in for The GIMP program
===========================================================

Copyright (C) 1996-98 Tom Bech
Copyright (C) 1996-98 Federico Mena Quintero

Released 16th of July, 1998

You can reach the author(s) via E-mail:
tomb@gimp.org (Tom) or quartic@gimp.org (Federico).

The GIMP was developed by Peter Mattis and Spencer Kimball.
You can contact them at gimp@xcf.berkeley.edu.

There's more GIMP stuff on our home pages:
http://www.ii.uib.no/~tomb/gimp.html (Tom's page)
http://www.nuclecu.unam.mx/~federico/gimp/index.html (Quartic's page)

Legal stuff
===========

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program (see "COPYING" file); if not, write to the Free Software Foundation,
Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

In other words, you can't sue us for whatever happens while using this ;)

Compiling
=========

To compile you'll need The GIMP 1.0 and GTK+ 1.0.4 or later.
You'll also need GCK 1.00 (http://www.ii.uib.no/~tomb/gck.html)

1) Edit the Makefile to reflect your system setup.

2) Type "make" and then "make install"

You should now be ready to run. "make install" puts the executable "MapObject"
in the standard plug-in directory.

Documentation
=============

Ahem.. right.. ;) ..I'll get around to it eventually.

Please send me a mail if you find any bugs.

Have fun,

Tom