Gimp/app
Michael Natterer 09454fb2a4 some general cleanup.
2005-09-03  Michael Natterer  <mitch@gimp.org>

	* app/base/pixel-region.[ch]: some general cleanup.

	(pixel_region_init_temp_buf)
	(pixel_region_init_data): new functions which initialize pixel
	regions on TempBufs and on raw contiguous arrays of pixel data.

	(pixel_region_configure): fixed a bug that has probably been there
	forever: when processing contiguous (non-tiled) data, interpret
	the original x and y coordinates of the region as offsets into
	the data. Before this fix, the initial x and y were simply ignored
	(by using them in a broken way), thus always forcing the upper
	left corner of the region being the beginning of the passed data.

	Lots of code was working around this problem by setting the
	pixel_region's data pointer to the proper starting pixel of the
	region in the middle the buffer.

	* libgimp/gimppixelrgn.c: some general cleanup.

	(gimp_pixel_rgn_configure): same fix as above. Fortunately, nobody
	seems to know that libgimp pixel regions can be used on arrays of
	data, just as core ones. Only two plug-ins were using this
	feature, and they are antique and written by spencer and federico,
	respectively. They both don't use offsets into the buffers and are
	not affected by this change. It's highly unlikely that anybody out
	there knows/uses this feature, so it can IMHO be safely changed.

	* app/base/temp-buf.c
	* app/core/gimpbuffer.c
	* app/core/gimpdrawable-combine.c
	* app/core/gimpdrawable-preview.c
	* app/core/gimpimage-preview.c
	* app/core/gimplayer.c
	* app/paint/gimpbrushcore.c
	* app/paint/gimpclone.c
	* app/paint/gimpconvolve.c
	* app/paint/gimpdodgeburn.c
	* app/paint/gimppaintcore.c
	* app/paint/gimpsmudge.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimppainttool.c: use the pixel_region_init_foo()
	functions instead of initializing regions of TempBufs and raw data
	manually. Removed lots of workarounds for the broken offset
	handling. The changed places of code are much more readable now.
2005-09-03 17:16:58 +00:00
..
actions don't create a display here. 2005-09-02 22:50:06 +00:00
base some general cleanup. 2005-09-03 17:16:58 +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 some general cleanup. 2005-09-03 17:16:58 +00:00
dialogs app/dialogs/convert-dialog.c app/dialogs/image-merge-layers-dialog.c 2005-09-02 12:09:32 +00:00
display draw guides over the grid. 2005-09-02 16:26:56 +00:00
file added GIMP_UNDO_FOREGROUND_SELECT. 2005-08-03 01:54:27 +00:00
gui app/dialogs/module-dialog.c app/dialogs/palette-import-dialog.c 2005-08-03 09:34:55 +00:00
menus added "sample-merged" property and API. Pass it to 2005-07-09 11:23:15 +00:00
paint some general cleanup. 2005-09-03 17:16:58 +00:00
paint-funcs Bill Skaggs <weskaggs@primate.ucdavis.edu> 2005-08-24 17:55:52 +00:00
pdb don't create a display here. 2005-09-02 22:50:06 +00:00
plug-in Instead of passing a child_setup function whose body is ifdeffed out on 2005-08-26 12:03:24 +00:00
text define G_DISABLE_DEPRECATED unless glib >= 2.9.0. 2005-08-16 00:48:20 +00:00
tools some general cleanup. 2005-09-03 17:16:58 +00:00
vectors fixed a typo: s/occured/occurred/g 2005-08-21 20:28:05 +00:00
widgets don't create a display here. 2005-09-02 22:50:06 +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
airbrush.c
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
errors.h
fileicon.ico New Win32 icons contributed by Jernej Simoncic: 2004-11-06 11:39:42 +00:00
gimp-intl.h
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.am fixed dist-dump-gimprc rule. 2005-08-09 23:58:32 +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
paint_options.h
plug_in_cmds.c
sanity.c made the G_FILENAME_ENCODING not or incorrectly set error message more 2005-05-25 23:21:06 +00:00
sanity.h
transform_core.c
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
wilber.ico New Win32 icons contributed by Jernej Simoncic: 2004-11-06 11:39:42 +00:00