Commit Graph

8072 Commits

Author SHA1 Message Date
Sven Neumann 99309dde33 NEWS mention that this is the development branch.
2004-04-15  Sven Neumann  <sven@gimp.org>

	* NEWS
	* README: mention that this is the development branch.
2004-04-15 13:06:39 +00:00
Sven Neumann 44fd2e0add header cleanup, added some const qualifiers, converted tabs to spaces.
2004-04-15  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.[ch]:
	* app/paint-funcs/paint-funcs-generic.h: header cleanup, added
	some const qualifiers, converted tabs to spaces. Fixes bug #140115
	for the HEAD branch.
2004-04-15 12:38:54 +00:00
Michael Natterer 18d9161eea Get rid of the "current_context" which was in fact just a bunch of global
2004-04-15  Michael Natterer  <mitch@gimp.org>

	Get rid of the "current_context" which was in fact just a bunch of
	global variables. Instead, pass the needed context all the way
	from the GUI and the PDB to the core. This is a prerequisite for
	macro recording and generally helps separating the various
	subsystems from each other. Work in progress...

	* app/core/gimp.[ch]: removed member "current_context" and
	gimp_[get|set]_current_context().

	* app/core/gimp-edit.[ch]
	* app/core/gimpdrawable-blend.[ch]
	* app/core/gimpdrawable-bucket-fill.[ch]
	* app/core/gimpdrawable-offset.[ch]
	* app/core/gimpdrawable-transform.[ch]
	* app/core/gimpimage-crop.[ch]
	* app/core/gimpimage-flip.[ch]
	* app/core/gimpimage-merge.[ch]
	* app/core/gimpimage-resize.[ch]
	* app/core/gimpimage-rotate.[ch]
	* app/core/gimpimage.[ch]
	* app/core/gimpimagefile.[ch]
	* app/core/gimpitem-linked.[ch]
	* app/core/gimpitem.[ch]
	* app/core/gimplayer.[ch]
	* app/core/gimpselection.[ch]
	* app/core/gimptemplate.[ch]
	* app/file/file-open.[ch]
	* app/file/file-save.[ch]
	* app/pdb/procedural_db.[ch]
	* app/text/gimptext-compat.[ch]
	* app/text/gimptextlayer-transform.[ch]
	* app/gui/brush-select.[ch]
	* app/gui/font-select.[ch]
	* app/gui/gradient-select.[ch]
	* app/gui/palette-select.[ch]
	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
	parameters and use the passed context instead of
	gimp_get_current_context().

	* app/app_procs.c
	* app/batch.c
	* app/core/gimpchannel.c
	* app/core/gimpdrawable.c
	* app/paint/gimperaser.c
	* app/paint/gimppaintbrush.c
	* app/plug-in/plug-in-message.c
	* app/plug-in/plug-ins.c
	* app/text/gimptextlayer.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpinktool.c
	* app/tools/gimptransformtool.c
	* app/vectors/gimpvectors.c
	* app/gui/convert-dialog.c
	* app/gui/drawable-commands.c
	* app/gui/edit-commands.c
	* app/gui/file-commands.c
	* app/gui/file-new-dialog.c
	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c
	* app/gui/image-commands.c
	* app/gui/layers-commands.c
	* app/gui/offset-dialog.c
	* app/gui/select-commands.c
	* app/gui/vectors-commands.c
	* app/widgets/gimpdnd.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimphelp.c
	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
	GIMP_CONTEXT(tool_options) or whatever is the right context
	to the changed core functions.

	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
	generated PDB invokers.

	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/brushes.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/font_select.pdb
	* tools/pdbgen/pdb/gradient_select.pdb
	* tools/pdbgen/pdb/gradients.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/layer.pdb
	* tools/pdbgen/pdb/paint_tools.pdb
	* tools/pdbgen/pdb/palette.pdb
	* tools/pdbgen/pdb/palette_select.pdb
	* tools/pdbgen/pdb/palettes.pdb
	* tools/pdbgen/pdb/paths.pdb
	* tools/pdbgen/pdb/pattern_select.pdb
	* tools/pdbgen/pdb/patterns.pdb
	* tools/pdbgen/pdb/selection.pdb
	* tools/pdbgen/pdb/text_tool.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
	parameter to the changed core functions.

	* app/pdb/*_cmds.c: regenerated.
2004-04-14 23:37:34 +00:00
Raphael Quinet ab5ffbb5be New version of the script that works on a temporary copy of the image
2004-04-14  Raphael Quinet  <quinet@gamers.org>

	* plug-ins/script-fu/scripts/copy-visible.scm: New version of the
	script that works on a temporary copy of the image instead of
	copying the visible layers.  Fixes bug #139989.
2004-04-14 21:45:43 +00:00
Sven Neumann 62b8ae01e4 fixed typo (bug #140039).
2004-04-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/film.c: fixed typo (bug #140039).
2004-04-14 15:11:12 +00:00
Sven Neumann 69f9c1a733 bumped version to 2.1.0, interface age 0, binary age 0. Changed library
2004-04-14  Sven Neumann  <sven@gimp.org>

        * configure.in: bumped version to 2.1.0, interface age 0, binary
        age 0. Changed library versioning to include gimp_minor_version
        similar to how gtk+ does it.
2004-04-13 23:39:03 +00:00
Sven Neumann 02eaae82e2 Made 2.0.1 release.
2004-04-14  Sven Neumann  <sven@gimp.org>

        * Made 2.0.1 release.
2004-04-13 23:00:15 +00:00
Raphael Quinet 492c6a4ae3 Workaround for bug #139947: do not register the plug-in for INDEXED* modes
2004-04-13  Raphael Quinet  <quinet@gamers.org>

	* plug-ins/common/mng.c (query, run): Workaround for bug #139947:
	do not register the plug-in for INDEXED* modes and do not declare
	that it can handle INDEXED images in gimp_export_image().  This
	forces a conversion to RGB instead of generating broken indexed
	images.  The generation of correct indexed MNG files is likely to
	require a newer release of libmng.
	(mng_data): Set default compression level to 9 instead of 6.
2004-04-13 21:32:10 +00:00
Sven Neumann 14c6f50a80 plug-ins/imagemap/imap_cern_parse.c plug-ins/imagemap/imap_csim_parse.c
2004-04-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_cern_parse.c
	* plug-ins/imagemap/imap_csim_parse.c
	* plug-ins/imagemap/imap_ncsa_parse.c: regenerated using GNU Bison
	version 1.875a. Fixes bug #139894.
2004-04-13 20:40:28 +00:00
Sven Neumann ffdf3a5bc3 reverted last change and go back to the solution using fork(). Hopefully
2004-04-13  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: reverted last change and go back to the
	solution using fork(). Hopefully fixes bug #139158 this time.
2004-04-13 16:42:03 +00:00
Sven Neumann 84688d18d8 added a category parameter to make this function more flexible.
2004-04-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-utils.[ch] (gimp_get_default_language): added a
	category parameter to make this function more flexible.

	* app/text/gimptext.c: changed accordingly.

	* app/widgets/gimphelp.c (gimp_help): localize the help pages
	according to the value of LC_MESSAGES. Fixes bug #139917.
2004-04-13 15:07:30 +00:00
Michael Natterer 2e61d12ed4 Moved the calls to floating_sel_relax()/rigor() from various places to two
2004-04-13  Michael Natterer  <mitch@gimp.org>

	Moved the calls to floating_sel_relax()/rigor() from various
	places to two single spots in the core where they are actually
	needed. Fixes bug #138356 (which was caused by the projection
	being triggered in the middle of changing the floating selection's
	size or the size of the drawable it is attached to). This commit
	effectively removes floating selection fiddling from the core's
	public API.

	* app/core/gimpdrawable.[ch] (gimp_drawable_has_floating_sel): new
	function which returns TRUE if there is a floating selection
	attached to the drawable.

	* app/core/gimpdrawable.c (gimp_drawable_translate)
	(gimp_drawable_set_tiles_full): if the drawable *has* a floating
	selection, relax/rigor it before/after modifying the drawable.

	* app/core/gimplayer.c (gimp_layer_translate)
	(gimp_layer_set_tiles): if the layer *is* the floating selection,
	relax/rigor it before/after modifying it.

	* app/core/gimpdrawable-transform.c
	* app/core/gimpimage-convert.c
	* app/core/gimpimage-crop.c
	* app/core/gimpimage-flip.c
	* app/core/gimpimage-resize.c
	* app/core/gimpimage-rotate.c
	* app/core/gimpimage-scale.c
	* app/gui/layers-commands.c
	* app/tools/gimpeditselectiontool.c
	* tools/pdbgen/pdb/layer.pdb: removed calls to
	floating_sel_rigor()/relax() all over the place. Also removed
	lots of undo groups which are obsolete now.

	* app/pdb/layer_cmds.c: regenerated.
2004-04-13 13:54:54 +00:00
Sven Neumann 44770220f9 convert the filename to UTF-8 before displaying it.
2004-04-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_file.c (do_file_error_dialog): convert
	the filename to UTF-8 before displaying it.
2004-04-13 13:01:08 +00:00
Michael Natterer 069489fb71 GimpItem undo group cleanup in preparation of fixing bug #138356:
2004-04-13  Michael Natterer  <mitch@gimp.org>

	GimpItem undo group cleanup in preparation of fixing bug #138356:

	* app/core/core-enums.[c]: renamed LAYER_SCALE and LAYER_RESIZE
	undo groups to ITEM_SCALE and ITEM_RESIZE.

	* app/core/gimpitem.[ch]: always push undo groups around
	GimpItem::translate(), scale(), resize(), flip(), rotate() and
	transform(). Added the resp. undo_desc strings to GimpItemClass.

	* app/core/gimpchannel.[ch]
	* app/core/gimpdrawable.[ch]
	* app/core/gimplayer.c: removed all undo groups from
	implementations of the above methods. Removed the undo_desc
	strings which were moved to GimpItemClass.

	* app/core/gimpimage-crop.c
	* app/core/gimpselection.c
	* app/gui/layers-commands.c
	* app/vectors/gimpvectors.c
	* tools/pdbgen/pdb/layer.pdb: changed accordingly.

	* app/pdb/layer_cmds.c: regenerated.
2004-04-13 11:43:27 +00:00
Sven Neumann 4be2336398 cleaned up the check for Xmu. Include <gdk/gdkx.h> when testing for Xmu.h.
2004-04-12  Sven Neumann  <sven@gimp.org>

	* configure.in: cleaned up the check for Xmu. Include <gdk/gdkx.h>
	when testing for Xmu.h. Fixes bug #139803.
2004-04-12 18:25:57 +00:00
Sven Neumann 056191c7a7 remove test-md5 on make clean.
2004-04-12  Sven Neumann  <sven@gimp.org>

	* libgimpmath/Makefile.am: remove test-md5 on make clean.
2004-04-12 09:51:15 +00:00
Manish Singh 7ef0073577 When using a separate dir for images, actually prepend the dir to the img
2004-04-11  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/py-slice.py: When using a separate dir for
        images, actually prepend the dir to the img srcs in the html. Allow
        only horizontal or vertical guides in an image, do not require both.
        A bit smarter path handling. Addresses most of bug #138714.
2004-04-11 17:00:39 +00:00
Hans Breuer 22e0f080c1 build sanity.obj app/text/makefile.msc : gimptextundo.obj
2004-04-11  Hans Breuer  <hans@breuer.org>

	* app/makefile.msc : build sanity.obj
	  app/text/makefile.msc : gimptextundo.obj
	  app/widgets/makefile.msc : gimppatternfactoryview.obj

	* plug-ins/common/winclipboard.c : don't call
	gimp_image_undo_enable() when it's not switched off.
	Otherwise the undo history would be destroyed with
	Gimp-Core-CRITICAL **: file gimpimage.c: line 1579: assertion
	`gimage->undo_freeze_count > 0' failed
2004-04-11 15:21:09 +00:00
Sven Neumann 68d9b6013c push an undo group only when it's needed. This resurrects text undo
2004-04-10  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c (gimp_text_tool_apply): push an undo
	group only when it's needed. This resurrects text undo compression
	that broke when bug #137767 got fixed.
2004-04-10 18:11:00 +00:00
Sven Neumann e210289a5f updated example URL.
2004-04-10  Sven Neumann  <sven@gimp.org>

	* docs/gimp-remote.1.in: updated example URL.
2004-04-10 14:23:22 +00:00
Pedro Gimeno d3b3d7457a Applied patch from William Skaggs that addresses bug #120490.
2004-04-10  Pedro Gimeno  <pggimeno@wanadoo.es>

	* app/core/gimpdrawable-transform.c
	(gimp_drawable_transform_tiles_affine): Applied patch from William
	Skaggs that addresses bug #120490.

	* app/sanity.c (sanity_check): Modified the message that reports
	an old version of Fontconfig in an attempt to make it more
	informative.
2004-04-10 11:23:22 +00:00
Sven Neumann 27addd2ed7 reverted the last change and did a different fix that involves closing the
2004-04-10  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c (start_new_gimp): reverted the last change
	and did a different fix that involves closing the X display before
	starting gimp (bug #139158).
2004-04-10 10:25:36 +00:00
Manish Singh f53d2850dd Uglier workaround for bug #138357, since the previous one did break error
2004-04-09  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/jpeg.c: Uglier workaround for bug #138357, since
        the previous one did break error handling. Fixes bug #139571.
2004-04-09 18:38:48 +00:00
Henrik Brix Andersen 1292f5d934 s/14/20/ plus whitespace clean-up.
2004-04-09 Henrik Brix Andersen <brix@gimp.org>

* README.i18n: s/14/20/ plus whitespace clean-up.
2004-04-09 12:13:48 +00:00
Sven Neumann 3c7b79a673 applied a patch from Kevin Cozens that makes the Script-Fu PDB marshaller
2004-04-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/siod-wrapper.c: applied a patch from Kevin
	Cozens that makes the Script-Fu PDB marshaller handle NULL
	strings. Some minor code cleanup. Fixes bug #139386.
2004-04-08 16:05:27 +00:00
Sven Neumann 7c28468722 applied a patch from Michael Matz that calls fork() before starting gimp.
2004-04-08  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c (start_new_gimp): applied a patch from
	Michael Matz that calls fork() before starting gimp. This is to
	avoid X server authentification problems (bug #139158).
2004-04-08 15:19:44 +00:00
Henrik Brix Andersen bd88cf582e revert addition of "is" until all .po files are there.
2004-04-07 Henrik Brix Andersen <brix@gimp.org>

* configure.in (ALL_LINGUAS): revert addition of "is" until all
.po files are there.
2004-04-07 08:15:06 +00:00
Samel Jn Gunnarsson 43da7d80c4 Added Icelandic translation by Helgi ormar orbjrnsson <helgi@trance.is>
2004-04-07  Samel Jn Gunnarsson  <sammi@techattack.nu>

	* is.po: Added Icelandic translation by
	Helgi ormar orbjrnsson  <helgi@trance.is>
2004-04-07 02:05:15 +00:00
Iñaki Larrañaga 10f16c863d Added "eu" (Basque) to ALL_LINGUAS.
2004-04-06  Iñaki Larrañaga  <dooteo@euskalgnu.org>

        * configure.in: Added "eu" (Basque) to ALL_LINGUAS.
2004-04-06 17:47:24 +00:00
Pedro Gimeno bc7d7d5afe Use gimp-image-get-active-layer/channel instead of the passed drawable for
2004-04-05  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/script-fu/scripts/copy-visible.scm: Use
	gimp-image-get-active-layer/channel instead of the passed
	drawable for later restoring the initially active layer/channel.
	Addresses bug #138662.

	* plug-ins/script-fu/scripts/drop-shadow.scm: Add a call to
	gimp-image-set-active-layer in order for it to fail early instead
	of failing with the undo group open in case the drawable is not
	suitable for applying the effect.
2004-04-05 21:35:03 +00:00
Michael Natterer b80d76ab50 update the whole image.
2004-04-05  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.c (gimp_image_real_mode_changed): update the
	whole image.

	* app/display/gimpdisplay-handlers.c: removed obsolete
	"mode_changed" and "colormap_changed" handlers because GimpImage's
	default handlers already update the whole image.
2004-04-05 15:38:26 +00:00
Pedro Gimeno f7ce875889 Sanitize rectangle and ellipse selection handling (bug #138237 and bug
2004-04-05  Pedro Gimeno  <pggimeno@wanadoo.es>

	Sanitize rectangle and ellipse selection handling (bug #138237
	and bug #138103):

	* app/tools/gimprectselecttool.h
	* app/tools/gimprectselecttool.c (GimpRectSelectTool): new
	member "moved" indicating whether the cursor was moved after
	the click.
	(gimp_rect_select_tool_coords_to_integer): New function for
	consistent conversion of the rectangle FP coords to pixels.
	(gimp_rect_select_tool_button_press,
	gimp_rect_select_tool_button_release,
	gimp_rect_select_tool_motion, gimp_rect_select_tool_draw): use
	it instead of fiddling with the FP coordinates. Update "moved"
	and use it to detect whether the selection needs to be cleared.

	* app/tools/gimpellipseselecttool.c
	(gimp_ellipse_select_tool_draw): use the new coords_to_integer
	function.
2004-04-05 08:08:23 +00:00
Sven Neumann 6becbaf1c6 applied the second patch attached to bug #138788 by William Skaggs.
2004-04-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/Lighting/lighting_ui.c: applied the second patch
	attached to bug #138788 by William Skaggs. Removes some user
	interface elements that have no corresponding implementation and
	fixes preview updates.
2004-04-05 00:35:46 +00:00
Sven Neumann 115eeb611a Makefile.am moved old NEWS to this new file.
2004-04-04  Sven Neumann  <sven@gimp.org>

	* Makefile.am
	* NEWS.pre-2-0: moved old NEWS to this new file.

	* NEWS: list bugs fixed since 2.0.0.
2004-04-05 00:17:57 +00:00
Sven Neumann 2802b47f59 Makefile.am don't install gimptool symlinks to gimptool-2.0 and its
2004-04-04  Sven Neumann  <sven@gimp.org>

	* Makefile.am
	* docs/Makefile.am: don't install gimptool symlinks to
	gimptool-2.0 and its manpage. gimp.m4 as installed with gimp-1.2
	looks for gimptool (bug #139024).
2004-04-04 19:23:30 +00:00
Sven Neumann f87c500007 app/display/gimpdisplayshell-callbacks.c
2004-04-04  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-draw.[ch] pass the bounding box of
	the exposed area to gimp_display_shell_draw_grid() and draw only
	the relevant part of the grid. Fixes bug #138606.
2004-04-04 17:17:40 +00:00
Sven Neumann b179d2a76b Cache the GC for drawing the grid as suggested in bug #138081:
2004-04-04  Sven Neumann  <sven@gimp.org>

	Cache the GC for drawing the grid as suggested in bug #138081:

	* app/display/gimpdisplayshell.[ch]: added a grid_gc member to
	GimpDisplayShell.

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_grid_notify_handler)
	(gimp_display_shell_disconnect): invalidate the grid GC.

	* app/display/gimpdisplayshell-draw.c (gimp_display_shell_draw_grid):
	use the cached grid_gc. Also applied the fix that Pedro Gimeno did
	for bug #138606.
2004-04-04 15:53:21 +00:00
Sven Neumann b982c495fd added a missing call to gettext(). Fixes bug #139000.
2004-04-04  Sven Neumann  <sven@gimp.org>

	* app/core/gimpundo.c (gimp_undo_type_to_name): added a missing
	call to gettext(). Fixes bug #139000.
2004-04-04 10:56:57 +00:00
Manish Singh e6e8c0ed76 Create any directories in the install path that do not already exist.
2004-04-03  Manish Singh  <yosh@gimp.org>

        * gimptool-2.0.in: Create any directories in the install path that do
        not already exist. Fixes bug #138980.

        * docs/gimptool.1.in: s/dont/don't/g
2004-04-04 01:12:32 +00:00
Sven Neumann 7a804a3588 do nothing if the selection is empty. Fixes bug #138973.
2004-04-04  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagemap.c (gimp_image_map_apply): do nothing if the
	selection is empty. Fixes bug #138973.
2004-04-03 23:17:59 +00:00
Sven Neumann fe3dc81387 create the initial text layer with a size of 1 x 1 since
2004-04-03  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayer.c (gimp_text_layer_new): create the
	initial text layer with a size of 1 x 1 since tile_manager_new()
	does not any longer accept 0 x 0.

	* app/core/gimpdrawable.c (gimp_drawable_configure): check that
	width and height are > 0.
2004-04-03 12:03:27 +00:00
Sven Neumann df2a470e50 plug-ins/Lighting/lighting_main.c applied the first of two patches
2004-04-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/Lighting/lighting_main.c
	* plug-ins/Lighting/lighting_shade.c: applied the first of two
	patches attached to bug #138788 by William Skaggs.
2004-04-02 23:45:36 +00:00
Simon Budig 24a27843f8 set a proper pixelfetcher edge mode for bigger radii. Avoids getting
2004-04-02  Simon Budig  <simon@gimp.org>

	* plug-ins/common/whirlpinch.c: set a proper pixelfetcher
	edge mode for bigger radii. Avoids getting garbage at the
	image borders.
2004-04-02 20:50:07 +00:00
Dave Neary bfdc3d1490 Added .jpe to the list of extensions that the jpeg plug-in recognises.
2004-04-02  Dave Neary  <bolsh@gimp.org>

        * plug-ins/common/jpeg.c: Added .jpe to the list of extensions
        that the jpeg plug-in recognises. Fixes bug #138776.
2004-04-02 09:41:42 +00:00
Sven Neumann 224b14dffe unset the bg_pixmap and tweak style colors for all states. Sort of ugly
2004-04-01  Sven Neumann  <sven@gimp.org>

	* app/gui/user-install-dialog.c: unset the bg_pixmap and tweak
	style colors for all states. Sort of ugly but makes the dialog
	work better with more obscure themes (bug #138379).
2004-04-01 18:43:42 +00:00
Sven Neumann 890a7258ad updated a comment.
2004-04-01  Sven Neumann  <sven@gimp.org>

	* tools/kernelgen.c: updated a comment.
2004-04-01 17:28:15 +00:00
Michael Natterer acc72b620e added undo type GIMP_UNDO_TEXT_LAYER_MODIFIED and undo group types
2004-04-01  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.[ch] (enum GimpUndoType): added undo type
	GIMP_UNDO_TEXT_LAYER_MODIFIED and undo group types
	GIMP_UNDO_GROUP_DRAWABLE and GIMP_UNDO_GROUP_DRAWABLE_MOD.

	* app/core/gimpimage-undo-push.[ch]: added new new function
	gimp_image_undo_push_text_layer_modified() which makes
	modifications of the text_layer's "modified" boolean undoable.

	* app/core/gimpdrawable.[ch]: added new virtual function
	GimpDrawable::push_undo() and moved the actual undo pushing into
	the default implementation gimp_drawable_real_push_undo().

	* app/text/gimptextlayer.c (gimp_text_layer_push_undo): new
	function. Pushes the text_layer's modified state to the undo stack
	after upchaining and sets modified to TRUE.

	(gimp_text_layer_set_tiles): ditto.

	(gimp_lext_layer_apply_region)
	(gimp_text_layer_replace_region): removed because their default
	implementations already call gimp_drawable_push_undo().

	(gimp_text_layer_swap_pixels): removed because swap_pixels() is
	used by undo only and doesn't need to care about the text_layer's
	modified state.

	(gimp_text_layer_render): don't set modified to FALSE here because
	we can't push an undo step here.

	(gimp_text_layer_set): push the modified state to the undo stack
	and set it to FALSE here. Also push the layer's tiles if the
	layer was modified.

	* app/tools/gimptexttool.c (gimp_text_tool_apply): push "modified"
	to the undo stack and set it to FALSE here, too.

	Fixes bug #137767.
2004-04-01 14:51:58 +00:00
Simon Budig 157af2d30c One really should use braces when mixing additions and multiplication and
2004-03-31  Simon Budig  <simon@gimp.org>

	* app/tools/gimptransformtool.c: One really should use braces
	when mixing additions and multiplication and the operator
	precedence is not the desired one...

	I feel stupid...  :-)
2004-03-31 14:21:36 +00:00
Michael Natterer 4de398bb37 make sure 0.0/0.0 results in 1.0, not NaN.
2004-03-31  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-transform-utils.c
	(gimp_transform_matrix_perspective): make sure 0.0/0.0 results
	in 1.0, not NaN.

	* app/core/gimpdrawable-transform.c
	(gimp_drawable_transform_tiles_affine): instead of returning NULL
	if the transformation shrinks the tiles completely away, return at
	least the pixel (or the row or column of pixels) which best covers
	the sub-pixel area of the transform result:

	- Changed rounding of the transformed coordinates from RINT()
	  to floor()/ceil() so we don't cut off sub-pixel portions of the
	  transform result.
	- Force the minimal size if the changed rounding didn't help.

	Fixes bug #138117.

	Also added paranoia code which falls back to clip_result if the
	passed matrix produces NaN coordinates (copied the FINITE() macro
	from image_cmds.c).
2004-03-31 12:40:23 +00:00
Sven Neumann 48084ada77 define "map" here, the script used to take the definition from
2004-03-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/grid-system.scm: define "map" here,
	the script used to take the definition from alien-glow-arrow.scm
	or beveled-pattern-arrow.scm. Also added an undo group around all
	operations. Fixes bug #138524.
2004-03-30 16:55:08 +00:00
Michael Natterer afe0eb359e app/Makefile.am new files implementing sanity_check() for run-time
2004-03-30  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* app/sanity.[ch]: new files implementing sanity_check() for
	run-time checking library versions. Added a check for FreeType but
	disabled it until we figured if and how freetype causes some of
	the DLL hell bugs.

	* app/main.c (main): call it and abort if it fails.

	* app/app_procs.[ch]: added app_gui_abort() so main.c doesn't
	need to #include "gui/gui.h"

	* app/gui/gui.[ch] (gui_libs_init): removed library sanity checking.

	(gui_abort): new function which shows the abort message.
2004-03-30 11:32:21 +00:00
Michael Natterer b8f45556a8 revert addition on "pa" until all .po files are there.
2004-03-30  Michael Natterer  <mitch@gimp.org>

	* configure.in (ALL_LINGUAS): revert addition on "pa" until
	all .po files are there.
2004-03-30 11:16:37 +00:00
Guntupalli Karunakar e1d8d834dc Added punjabi translation 2004-03-30 10:00:26 +00:00
Manish Singh fd987ef9bb Move setjump_buffer to the beginning of the structure, to make sure it is
2004-03-29  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/jpeg.c (struct my_error_mgr): Move setjump_buffer
        to the beginning of the structure, to make sure it is aligned on a
        16-byte boundary for ia64, even with icc. Fixes #138357.
2004-03-29 23:38:58 +00:00
Sven Neumann 951f1589a1 changed the default for "help-locales" from NULL to an empty string. Fixes
2004-03-29  Sven Neumann  <sven@gimp.org>

	* app/config/gimpguiconfig.c: changed the default for "help-locales"
	from NULL to an empty string. Fixes the generated gimprc man-page.

	* app/config/gimprc-blurbs.h (HELP_LOCALES_BLURB): added missing
	whitespace.

	* app/widgets/gimphelp.c: use the user's locale if "help-locales"
	is NULL or the empty string.

	* docs/gimprc.5.in
	* etc/gimprc: regenerated.
2004-03-29 17:54:13 +00:00
Michael Natterer 2e61f95873 fixed last log. 2004-03-29 09:58:04 +00:00
Michael Natterer 110dc4e2d6 added new group GIMP_UNDO_GROUP_FS_REMOVE.
2004-03-29  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.h (enum GimpUndoType): added new group
	GIMP_UNDO_GROUP_FS_REMOVE.

	* app/core/gimplayer-floating-sel.c (floating_sel_remove): push an
	undo group. Fixes undo corruption spotted by Pedro Gimeno.
2004-03-29 09:57:39 +00:00
Michael Natterer f1de2e7d43 Don't just skip guides at the image edges but any guide which is at a
2004-03-29  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/guillotine.c (guillotine): Don't just skip
	guides at the image edges but any guide which is at a position we
	already remembered. Should catch all instances of bug #138312 this
	time.
2004-03-29 09:27:30 +00:00
Sven Neumann c8a387e09c applied patch from David Necas that updates the sensitivity of the Delete
2004-03-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/ifscompose.c: applied patch from David Necas
	that updates the sensitivity of the Delete button and menu entry.
	Fixes bug 138212#.
2004-03-28 16:09:56 +00:00
Sven Neumann 0c30397541 fixed non-interactive call.
2004-03-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/MapObject/mapobject_main.c: fixed non-interactive call.

	* plug-ins/script-fu/scripts/spinning-globe.scm: pass -1 as
	drawable ID for unused drawables. Fixes bug #138253.
2004-03-28 15:41:31 +00:00
Sven Neumann dd94d1cb05 validate the font name. This should work around the crashes that Windows
2004-03-28  Sven Neumann  <sven@gimp.org>

	* app/text/gimpfontlist.c (gimp_font_list_add_font): validate the
	font name. This should work around the crashes that Windows users
	were experiencing on startup (bug #132366). The real problem needs
	to be fixed elsewhere though.
2004-03-28 14:27:37 +00:00
Michael Natterer 0af7cfa584 when re-adding a layer with mask, don't forget to set layer->mask->removed
2004-03-28  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-undo-push.c (undo_pop_layer): when re-adding
	a layer with mask, don't forget to set layer->mask->removed to FALSE.
2004-03-28 14:25:42 +00:00
Michael Natterer 77447984cc added "gboolean removed" to the GimpItem struct. Defaults to FALSE. Set it
2004-03-28  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpitem.[ch]: added "gboolean removed" to the GimpItem
	struct. Defaults to FALSE. Set it to TRUE in gimp_item_removed().
	Added public function gimp_item_is_removed().

	* app/core/gimpimage-undo-push.c (undo_pop_layer)
	(undo_pop_layer_mask) (undo_pop_channel) (undo_pop_vectors):
	set it to FALSE manually when re-adding something from the
	undo stack.

	* tools/pdbgen/app.pl
	* tools/pdbgen/pdb.pl: don't allow any operation on items which
	are removed from the image (and exist on the undo stack only).
	Fixes bug #138311.

	* app/pdb/channel_cmds.c
	* app/pdb/color_cmds.c
	* app/pdb/drawable_cmds.c
	* app/pdb/edit_cmds.c
	* app/pdb/floating_sel_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/layer_cmds.c
	* app/pdb/paint_tools_cmds.c
	* app/pdb/parasite_cmds.c
	* app/pdb/selection_cmds.c
	* app/pdb/selection_tools_cmds.c
	* app/pdb/transform_tools_cmds.c: regenerated.
2004-03-28 14:20:57 +00:00
Sven Neumann a5117a65bd applied a (modified) patch from Nils Philippsen that fixes bug #138310.
2004-03-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/slide.scm: applied a (modified) patch
	from Nils Philippsen that fixes bug #138310.
2004-03-28 12:31:20 +00:00
Michael Natterer 02291637e1 applied a (modified) patch from Joao S. O. Bueno which removes any guides
2004-03-28  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/guillotine.c (guillotine): applied a (modified)
	patch from Joao S. O. Bueno which removes any guides from the
	cropped images. Fixes bug #138314.

	Skip guides which are at the image's edges because the algorithm
	already assumes that there are always guides at these positions.
	Fixes bug #138312.
2004-03-28 11:58:22 +00:00
Tor Lillqvist fb42928bbe Use -mwindows on Windows to avoid a console window popping up.
2004-03-27  Tor Lillqvist  <tml@iki.fi>

	* plug-ins/help/Makefile.am (AM_LDFLAGS): Use -mwindows on Windows
	to avoid a console window popping up.
2004-03-27 01:09:00 +00:00
Manish Singh 83cae1617a don't generate code with tabs.
2004-03-26  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/app.pl: don't generate code with tabs.

        * tools/pdbgen/pdb/procedural_db.pdb: convert tabs to spaces in
        helper function declaration.

        * app/pdb/procedural_db.c: convert tabs to spaces.

        * app/pdb/*.c: regenerated, no code changes, only tabs->spaces.
2004-03-26 16:49:18 +00:00
Manish Singh 5c592d52c1 kill whitespace in blank lines.
2004-03-26  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/app.pl: kill whitespace in blank lines.

        * app/pdb/*.c: regenerated, no code changes, only whitespace.
2004-03-26 16:38:44 +00:00
Michael Natterer ef798bbcc3 return NULL tiles if the matrix would transform the drawable into nothing.
2004-03-26  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-transform.c
	(gimp_drawable_transform_tiles_affine): return NULL tiles if the
	matrix would transform the drawable into nothing. Fixes the
	core-crashing part of bug #138117 and makes the script fail
	with an execution error.
2004-03-26 10:28:44 +00:00
Sven Neumann 27ef18c7a5 mention the gimp-perl pre-release and provide a link.
2004-03-25  Sven Neumann  <sven@gimp.org>

	* README: mention the gimp-perl pre-release and provide a link.
2004-03-25 19:08:28 +00:00
Michael Natterer d23e1ffe3b g_return_if_fail() on width, height or bpp <= 0. Doesn't fix anything but
2004-03-25  Michael Natterer  <mitch@gimp.org>

	* app/base/tile-manager.c (tile_manager_new): g_return_if_fail()
	on width, height or bpp <= 0. Doesn't fix anything but badly
	warns (and helps debugging) on bug #138117.
2004-03-25 17:58:26 +00:00
Michael Natterer 13b46f4847 fixed condition which triggers the path tool's undo hack. Fixes bug
2004-03-25  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpvectortool.c (gimp_vector_tool_button_release):
	fixed condition which triggers the path tool's undo hack.  Fixes
	bug #138086. Also g_object_unref() the undo step.

	Removed trailing whitespace.
2004-03-25 12:46:20 +00:00
Manish Singh 87fba73a12 libgimp/gimp.c close the shm_open fd in the POSIX shm case. We were
2004-03-25  Manish Singh  <yosh@gimp.org>

        * libgimp/gimp.c
        * app/plug-in/plug-in-shm.c: close the shm_open fd in the POSIX
        shm case. We were leaking an fd here.
2004-03-25 09:02:28 +00:00
Michael Natterer f107e6cea9 be verbose about AUTOGEN_CONFIGURE_ARGS in the message that is printed if
2004-03-23  Michael Natterer  <mitch@gimp.org>

	* autogen.sh: be verbose about AUTOGEN_CONFIGURE_ARGS in the
	message that is printed if no arguments were passed.
2004-03-23 19:24:19 +00:00
Michael Natterer f9c642a988 Copied ChangeLog to ChangeLog.pre-2-0 and truncated ChangeLog. 2004-03-23 18:49:12 +00:00
Sven Neumann ea7fb10555 Michael Natterer <mitch@gimp.org>
2004-03-23  Sven Neumann  <sven@gimp.org>
            Michael Natterer <mitch@gimp.org>

        * Made 2.0.0 release.
2004-03-23 18:31:35 +00:00
Simon Budig eed77aa635 plug-ins/script-fu/scripts/alien-glow-arrow.scm Make helper functions
2004-03-23  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/scripts/alien-glow-arrow.scm
	* plug-ins/script-fu/scripts/beveled-pattern-arrow.scm: Make
	helper functions local to the scripts. The better fix for
	bug #136868. Should also be done for a lot of other scripts,
	but is too likely to introduce new bugs to do this now.
2004-03-23 14:18:13 +00:00
Sven Neumann 353182861d INSTALL NEWS updated for the 2.0 release.
2004-03-23  Sven Neumann  <sven@gimp.org>

	* INSTALL
	* NEWS
	* README: updated for the 2.0 release.
2004-03-23 11:28:38 +00:00
Simon Budig fa4fb1e603 fixed utility function rotate-points. Only worked sometimes by accident,
2004-03-23  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/scripts/alien-glow-arrow.scm: fixed
	utility function rotate-points. Only worked sometimes by
	accident, probably because beveled-pattern-arrow.scm implemented
	a function of the same name correctly and all scripts share
	a common namespace.

	Fixes bug #136868.
2004-03-23 11:07:35 +00:00
Michael Natterer e8526c97ee The floating_sel code is really from the stone age:
2004-03-23  Michael Natterer  <mitch@gimp.org>

	The floating_sel code is really from the stone age:

	* app/core/gimplayer-floating-sel.c (floating_sel_attach): call
	gimp_image_floating_sel() once and work on the return value
	instead of accessing gimage->floating_sel directly twice and
	calling gimp_image_floating_sel() for the thrid access.

	* app/core/gimpimage.c (gimp_image_floating_sel): no need to
	return NULL if gimage->floating_sel is NULL, just always return
	gimage->floating_sel.
2004-03-23 09:40:16 +00:00
Sven Neumann f2c849531c don't do a type-checking cast on an object that was released a few lines
2004-03-22  Sven Neumann  <sven@gimp.org>

	* app/core/gimplayer-floating-sel.c (floating_sel_attach): don't
	do a type-checking cast on an object that was released a few lines
	above. Fixes bug #137957.
2004-03-22 21:23:12 +00:00
Tor Lillqvist aaa44d37e2 Win32-only workaround for bug #137968.
2004-03-22  Tor Lillqvist  <tml@iki.fi>

	* app/plug-in/plug-in.c (plug_in_recv_message): Win32-only
	workaround for bug #137968.
2004-03-22 20:57:26 +00:00
Sven Neumann c809f21ab5 keep the text editor open as long as the text tool is connected to a text
2004-03-22  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c: keep the text editor open as long as
	the text tool is connected to a text layer. Open the text editor
	when a text layer is activated in the layers dialog.
2004-03-22 15:19:19 +00:00
Sven Neumann 7469b06006 preserve the text tool on image changes. Instead connect to the text
2004-03-22  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.[ch]: preserve the text tool on image
	changes. Instead connect to the text layer's "notify::modified"
	signal and disconnect from the layer when it is modified.
	Fixes bug #137890.
2004-03-22 14:32:47 +00:00
Michael Natterer bbc73e63bc removed the undo clearing/sanitizing code...
2004-03-22  Michael Natterer  <mitch@gimp.org>

	* app/file/file-open.c (file_open_with_proc_and_display): removed
	the undo clearing/sanitizing code...

	(file_open_image): ...and added it here so *all* newly opened
	images start with a clean and sane undo state.

	* app/gui/file-commands.c (file_revert_confirm_callback): removed
	(incomplete) undo sanitizing here too.
2004-03-22 13:46:14 +00:00
Sven Neumann 58df261e2b use putenv(); setenv() isn't available everywhere (bug #137930).
2004-03-22  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: use putenv(); setenv() isn't available
	everywhere (bug #137930).
2004-03-22 13:26:40 +00:00
Michael Natterer a666668ce8 call gimp_display_shell_expose_full() so the whole canvas gets cleared
2004-03-22  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_reconnect):
	call gimp_display_shell_expose_full() so the whole canvas gets
	cleared when reverting the image.
2004-03-22 13:12:07 +00:00
Sven Neumann 864b0370eb s/libtool/intltool/ in Raphael's commit message 2004-03-22 12:37:15 +00:00
Sven Neumann 2d4005f26c clamp the pixpipe dimension to the allowed range. Fixes bug #137902.
2004-03-22  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpparasiteio.c (gimp_pixpipe_params_parse): clamp
	the pixpipe dimension to the allowed range. Fixes bug #137902.
2004-03-22 12:33:52 +00:00
Sven Neumann db2dfce4b4 put some code back in that I removed accidentally.
2004-03-22  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayer.c (gimp_text_layer_duplicate): put some
	code back in that I removed accidentally.
	(gimp_text_layer_render) freeze/thaw notifications to avoid that
	two "notify::modified" signals are emitted.
2004-03-22 12:05:43 +00:00
Raphael Quinet 6721b96860 Added a test for the version of intltool because some of the recent
2004-03-22  Raphael Quinet  <quinet@gamers.org>

	* autogen.sh: Added a test for the version of intltool because
	some of the recent versions are known to break the Tips file.
	This fixes bug #137502.  The message should be updated when a new
	version of libtool is released.
2004-03-22 06:47:50 +00:00
Simon Budig 0c5632a8b1 set the minimum of the "default_heigt" property range to -1, this enables
2004-03-22  Simon Budig  <simon@gimp.org>

	* app/widgets/gimpdock.c: set the minimum of the
	"default_heigt" property range to -1, this enables users
	to disable this feature via gtkrc.
2004-03-22 00:33:08 +00:00
Sven Neumann 46fff1793d added a style property "default_height" and set a window default size for
2004-03-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdock.c: added a style property "default_height"
	and set a window default size for new docks. Fixes bug #137876.

	* themes/Default/gtkrc: document the default dock height.

	* themes/Small/gtkrc: set a smaller default dock height here.
2004-03-22 00:12:11 +00:00
Sven Neumann 2326e1b979 added gimp_undo_type_to_name() a similar function used to live in
2004-03-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimpundo.[ch]: added gimp_undo_type_to_name() a similar
	function used to live in gimpimage-undo.[ch].

	* app/core/gimpitemundo.c (gimp_item_undo_new): allow NULL as name
	and generate it from the undo_type then.

	* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_undu(),
	new function that allows to push an undo on the image.

	* app/text/Makefile.am
	* app/text/text-types.h
	* app/text/gimptextundo.[ch]: added GimpTextUndo, derived from
	GimpItemUndo.

	* app/core/gimpimage-undo-push.c (gimp_image_undo_push_text_layer):
	use the new code and simply push a text undo here.

	* app/tools/gimptexttool.c: compress text undos by peeking at the
	undo stack. Fixes bug #137766.
2004-03-21 23:14:21 +00:00
Michael Natterer f5b03f20de s/1.3/2.0/g
2004-03-21  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/makefile.msc:
	* libgimpmodule/makefile.msc: s/1.3/2.0/g
2004-03-21 19:58:04 +00:00
Michael Natterer e0d1ddb070 added run-time version check and do the workaround for bug #136636 only if
2004-03-21  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_events): added run-time version
	check and do the workaround for bug #136636 only if
	the Gtk+ version is < 2.2.5.

	* m4macros/gimp-2.0.m4: require gimp >= 2.0.0
2004-03-21 15:58:48 +00:00
Sven Neumann 7988f83ef3 fixed check that suppresses unnecessary reloads of the current page.
2004-03-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c: fixed check that suppresses
	unnecessary reloads of the current page.
2004-03-21 15:43:35 +00:00
Sven Neumann d321c13075 corrected #define for the debug menu.
2004-03-21  Sven Neumann  <sven@gimp.org>

	* app/gui/debug-commands.h: corrected #define for the debug menu.
2004-03-21 13:39:22 +00:00
Michael Natterer 5c74d2d334 modify the event_box and preview styles in GtkWidget::style_set() instead
2004-03-21  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpthumbbox.c: modify the event_box and preview
	styles in GtkWidget::style_set() instead of in
	gimp_thumb_box_new() so they follow theme changes correctly and
	the labels stay visible when switching to an "inverse" theme.
2004-03-21 11:22:29 +00:00
Sven Neumann 6972fe34df Made 2.0rc1 release.
2004-03-20  Sven Neumann  <sven@gimp.org>

        * Made 2.0rc1 release.
2004-03-20 23:41:42 +00:00
Simon Budig 62c63bf9e6 app/.cvsignore docs/.cvsignore updated to ignore 2.0 stuff :-)
2004-03-20  Simon Budig  <simon@gimp.org>

	* app/.cvsignore
	* docs/.cvsignore
	* tools/.cvsignore: updated to ignore 2.0 stuff  :-)
2004-03-20 22:24:52 +00:00
Pedro Gimeno 9127a54dec Fixed several off-by-one problems in display:
2004-03-20  Pedro Gimeno  <pggimeno@wanadoo.es>

	Fixed several off-by-one problems in display:

	* app/display/gimpdisplayshell.h (PROJ_ROUND): New macro to apply
	to a float the same rounding method as the one used when rendering.
	(SCALEX, SCALEY): Use PROJ_ROUND instead of truncating.

	* app/display/gimpdisplayshell-transform.c
	(gimp_display_shell_transform_xy): Accept gdouble image coordinates
	even if the returned screen coordinates are integer. Use PROJ_ROUND
	instead of (gint) to apply proper rounding. Fixes bug #137566.

	* app/display/gimpdisplayshell-transform.h
	(gimp_display_shell_transform_xy): changed accordingly.

	* app/display/gimpdisplayshell-draw.c
	* app/tools/gimpdrawtool.c: make sure everywhere that PROJ_ROUND
	is used either directly or through gimp_display_shell_transform_xy,
	instead of using arbitrary rounding methods.
2004-03-20 21:59:41 +00:00
Sven Neumann f97ae7d726 set version number to 2.0.0, version string to "2.0rc1".
2004-03-20  Sven Neumann  <sven@gimp.org>

	* configure.in: set version number to 2.0.0, version string to
	"2.0rc1".

	* app/Makefile.am
	* libgimp/Makefile.am
	* libgimpbase/Makefile.am
	* libgimpcolor/Makefile.am
	* libgimpmath/Makefile.am
	* libgimpmodule/Makefile.am
	* libgimpthumb/Makefile.am
	* libgimpwidgets/Makefile.am
	* tools/Makefile.am: changed 1.3 to 2.0 all over the place.

	* README
	* NEWS: updated for the 2.0rc1 release.
2004-03-20 20:45:17 +00:00
Sven Neumann 7fdd4af69a it wasn't such a good idea to let GimpConfig take care of the text when
2004-03-20  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayer.c: it wasn't such a good idea to let
	GimpConfig take care of the text when duplicating a text layer; it
	didn't create a copy. Do that manually again; fixes bug #137786.
2004-03-20 20:18:57 +00:00
Sven Neumann 584b3ceb9b don't take the image from tool->gdisp, this might be a NULL pointer.
2004-03-20  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c (gimp_text_tool_create_vectors): don't
	take the image from tool->gdisp, this might be a NULL pointer.

	* app/core/gimpimage-undo-push.c: removed debugging output.
2004-03-20 20:10:05 +00:00
Sven Neumann 20d03407fe avoid to set the unit property with every size change; only set it if it
2004-03-20  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppropwidgets.c (gimp_prop_size_entry_callback):
	avoid to set the unit property with every size change; only set it
	if it actually changed.

	* app/core/gimpimage-undo-push.c (gimp_image_undo_push_text_layer):
	allow to pass a GParamSpec that identifies a single text property
	to be changed. In this case, don't store a GimpText object on the
	undo stack but only the changed value.

	* app/tools/gimptexttool.c: use the new undo feature to reduce the
	memory footprint of text undo for the common case.

	* app/text/gimptextlayer.c: changed accordingly.
2004-03-20 17:21:48 +00:00
Simon Budig 9d616282c3 Applied slightly modified patch from Sven. When the quickmask has a
2004-03-20  Simon Budig  <simon@gimp.org>

	* app/core/gimpimage-qmask.c: Applied slightly modified patch
	from Sven. When the quickmask has a floating selection, anchor
	it before loading the selection and deleting the qmask channel.

	Fixes bug #137170.
2004-03-20 16:43:29 +00:00
Simon Budig 63177de7c4 new callbacks to convert the current vector to the selection.
2004-03-20  Simon Budig  <simon@gimp.org>

	* app/gui/select-commands.[ch]: new callbacks to convert the
	current vector to the selection.

	* app/gui/image-menu.c: hook it into the menu. Default shortcut
	is Shift+V.
2004-03-20 16:14:49 +00:00
Sven Neumann c4c19933bc use the same undo group logic as in the text tool. Not really necessary
2004-03-20  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayer.c (gimp_text_layer_set): use the same
	undo group logic as in the text tool. Not really necessary since
	this function must not be called on modified text layers, but it's
	more consistent this way.
2004-03-20 15:53:36 +00:00
Simon Budig a08efc86bd Assigned "b" as the default shortcut for the path tool ("Bezier").
2004-03-20  Simon Budig  <simon@gimp.org>

	* app/tools/gimpvectortool.c: Assigned "b" as the default shortcut
	for the path tool ("Bezier").

	Fixes bug #137753.
2004-03-20 15:28:28 +00:00
Sven Neumann fc3846e422 update the text editor when the text changes (for example when undoing
2004-03-20  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c: update the text editor when the text
	changes (for example when undoing text changes). Push a drawable
	undo when applying text changes to a modified text layer.
2004-03-20 13:26:02 +00:00
Simon Budig d8dcccf9df fixed a mangeled entry and described "gimp --batch -".
2004-03-20  Simon Budig  <simon@gimp.org>

	* docs/gimp.1.in: fixed a mangeled entry and described
	"gimp --batch -".
2004-03-20 12:46:32 +00:00
Sven Neumann 7e82e309b6 don't fiddle with the item size, gimp_drawable_set_tiles() does the right
2004-03-20  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayer.c (gimp_text_layer_render): don't fiddle
	with the item size, gimp_drawable_set_tiles() does the right thing.
2004-03-20 12:38:15 +00:00
Sven Neumann 2e27c10e49 added a reference to the bug report 2004-03-20 12:02:34 +00:00
Sven Neumann 5d0dc07dd4 pack and show the "Jigsaw Style" radio buttons. Fixes bug #137737.
2004-03-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jigsaw.c: pack and show the "Jigsaw Style" radio
	buttons. Fixes bug #137737.
2004-03-20 11:54:03 +00:00
Simon Budig 2b56b43d3c Ooops, forgot Chanelog Entry. 2004-03-19 23:44:01 +00:00
Sven Neumann 8214f17256 fixed a bug that Mitch spotted.
2004-03-20  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-undo-push.c (undo_pop_text_layer): fixed a
	bug that Mitch spotted.
2004-03-19 23:38:02 +00:00
Sven Neumann cbbe4f3871 don't exchange the text_layer's text object but sync it with the text
2004-03-20  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-undo-push.c (undo_pop_text_layer): don't
	exchange the text_layer's text object but sync it with the text
	object from the undo step.

	* app/text/gimptextlayer.c (gimp_text_layer_set): in case the
	layer has a mask, push an undo group around the text modifications.

	* app/tools/gimptexttool.c (gimp_text_tool_idle_apply): push a
	text layer undo before applying the text changes.
2004-03-19 23:08:24 +00:00
Sven Neumann 5e8b6171f4 don't call g_rand_int_range() with invalid parameters.
2004-03-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/spread.c: don't call g_rand_int_range() with
	invalid parameters.
2004-03-19 22:50:51 +00:00
Sven Neumann 520ee8b3ac added gimp_text_layer_set(), a function that calls g_object_set() on the
2004-03-19  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayer.[ch]: added gimp_text_layer_set(), a
	function that calls g_object_set() on the text-layer's text object
	and pushes an undo step.

	* app/display/gimpdisplayshell-dnd.c (gimp_display_shell_bucket_fill):
	use the new function.
2004-03-19 22:12:18 +00:00
Sven Neumann 28e79ea063 some minor updates.
2004-03-19  Sven Neumann  <sven@gimp.org>

	* HACKING: some minor updates.
2004-03-19 19:35:49 +00:00
Sven Neumann 5420154a66 if there's a layer mask, resize it with the layer.
2004-03-19  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayer.c (gimp_text_layer_render): if there's a
	layer mask, resize it with the layer.

	* app/tools/gimptexttool.c: don't change text_tool->layer before
	calling gimp_text_tool_connect().
2004-03-19 19:26:18 +00:00
Sven Neumann 72ea1affed updated PS keybindings contributed by Eric Pierce.
2004-03-19  Sven Neumann  <sven@gimp.org>

	* etc/ps-menurc: updated PS keybindings contributed by Eric Pierce.
2004-03-19 16:46:17 +00:00
Sven Neumann e9e3e22dae added a confirmation dialog that is shown when the user attempts to modify
2004-03-19  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.[ch]: added a confirmation dialog that is
	shown when the user attempts to modify a modified text layer.
2004-03-19 16:29:36 +00:00
Michael Natterer ccc39744e4 themes/Default/gtkrc don't set the height of GtkHScales to 11px any
2004-03-19  Michael Natterer  <mitch@gimp.org>

	* themes/Default/gtkrc
	* themes/Small/gtkrc: don't set the height of GtkHScales to 11px
	any longer. This modification was added only because at some time
	GTK+ 1.3.x (!!!) looked strange with the default size.
2004-03-19 13:54:24 +00:00
Sven Neumann 6928446734 if a tooltip is given, put the label into an eventbox (bug #137612).
2004-03-19  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.c (gimp_scale_entry_new_internal): if
	a tooltip is given, put the label into an eventbox (bug #137612).
2004-03-19 13:40:04 +00:00
Michael Natterer 2e2e65f841 added runtime check for GTK+ >= 2.4.0 and make sure the menubar's accels
2004-03-19  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): added
	runtime check for GTK+ >= 2.4.0 and make sure the menubar's accels
	can be invoked even if the menubar is invisible (workaround for
	bug #137151).
2004-03-19 12:52:27 +00:00
Michael Natterer fddb9ce0e3 app/gui/color-notebook.c (color_notebook_new) app/tools/gimpcroptool.c
2004-03-19  Michael Natterer  <mitch@gimp.org>

	* app/gui/color-notebook.c (color_notebook_new)
	* app/tools/gimpcroptool.c (crop_info_create)
	* app/tools/gimptransformtool.c (gimp_transform_tool_dialog):
	explicitely set a default response for dialog buttons which were
	created using gtk_dialog_add_buttons().
2004-03-19 10:15:56 +00:00
Sven Neumann d7dbf81ab0 cleaned up text tool logic.
2004-03-18  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.[ch]: cleaned up text tool logic.
2004-03-18 20:55:00 +00:00
Michael Natterer f3e07fcf4b simplified visibility and linked undo compression by passing an UNDO type,
2004-03-18  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpitemtreeview.c: simplified visibility and linked
	undo compression by passing an UNDO type, not an UNDO_GROUP type.

	Fixed (made weird) compression of "exclusive visible/linked" undos
	to only compress undos of the same item type (only compress layer
	visibility if we pushed a *layer* visibility before, not a channel
	or vectors visibility). Even worse, we need to push the
	visibility/linked state of *all* items when pushing an exclusive
	group, otherwise compression won't work.
2004-03-18 19:39:19 +00:00
Manish Singh 1f50327027 removed obsolete GimpParamColor typedef.
2004-03-18  Manish Singh  <yosh@gimp.org>

        * libgimp/gimptypes.h: removed obsolete GimpParamColor typedef.
2004-03-18 18:27:22 +00:00
Sven Neumann f07c0a6dd5 applied a patch from Kevin Cozens that slightly alters the Script-Fu
2004-03-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c: applied a patch from
	Kevin Cozens that slightly alters the Script-Fu console output.
2004-03-18 18:06:23 +00:00
Sven Neumann 2ce9ca7320 app/gui/layers-commands.c (layers_text_tool) treat modified text layers
2004-03-18  Sven Neumann  <sven@gimp.org>

	* app/gui/layers-commands.c (layers_text_tool)
	* app/gui/layers-menu.c (layers_menu_update): treat modified text
	layers like normal layers.

	* app/gui/layers-commands.c (layers_edit_layer_query): added a
	check button that gives access to the "auto-rename" property of a
	text layer.

	* app/text/gimptextlayer.c: typo.

	* app/widgets/gimppreviewrendererlayer.c
	(gimp_preview_renderer_layer_render): show the text layer icon for
	unmodified text layers only.
2004-03-18 18:00:38 +00:00
Simon Budig 633b2b9314 compress visibility and linked undos.
2004-03-18  Simon Budig  <simon@gimp.org>

	* app/widgets/gimpitemtreeview.c: compress visibility and linked
	undos.
2004-03-18 17:01:46 +00:00
Sven Neumann 17679a610b added a missing call to gimp_image_flush().
2004-03-18  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-dnd.c (gimp_display_shell_bucket_fill):
	added a missing call to gimp_image_flush().

	* app/tools/gimptexttool.c: propagate text changes to the tool
	options.

	* app/text/gimptextlayer.c: made "text", "auto-rename" and
	"modified" properties of the text layer and copy them when
	duplicating a text layer.

	* app/text/gimptextlayer-xcf.[ch]: added utility functions to
	convert the new properties to flags to be saved in the XCF file.

	* app/xcf/xcf-load.c
	* app/xcf/xcf-private.h
	* app/xcf/xcf-save.c: load and save text layer properties.
	Disabled warnings about unknown properties for stable branches.
2004-03-18 15:27:23 +00:00
Simon Budig def801b3c3 Initialize a new layer unconditionally. Spotted by Roman Joost.
2004-03-18  Simon Budig  <simon@gimp.org>

	* app/gui/layers-commands.c: Initialize a new layer
	unconditionally. Spotted by Roman Joost.
2004-03-18 14:18:56 +00:00
Sven Neumann f1f47b25e9 disabled debug output.
2004-03-18  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphelp.c: disabled debug output.

	* plug-ins/help/domain.[ch]
	* plug-ins/help/help.[ch]
	* plug-ins/help/locales.c: improved error reporting, fixed bugs
	and disabled debug output.
2004-03-18 12:18:12 +00:00
Michael Natterer 471de30bf0 plug-ins/common/CML_explorer.c changed procedure names to be all lowercase
2004-03-18  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/CML_explorer.c
	* plug-ins/common/gtm.c: changed procedure names to be all
	lowercase so 2.0 ships with a sane namespace and doesn't give bad
	examples to plug-in authors.
2004-03-18 11:42:37 +00:00
Sven Neumann 7b0919d76c Added support for localized help (bug #136996). Will need some minor
2004-03-18  Sven Neumann  <sven@gimp.org>

	Added support for localized help (bug #136996). Will need some
	minor touches to improve error reporting but basically it works.

	* plug-ins/help/Makefile.am
	* plug-ins/help/help.h: new file with common defines.

	* plug-ins/help/help.c
	* plug-ins/help/locales.c: include help.h, made debugging output
	optional.

	* plug-ins/help/domain.[ch]: added a hash table with locales for
	each help domain.
2004-03-18 02:45:52 +00:00
Sven Neumann e4881761ed plug-ins/help/Makefile.am new files with code to handle locales.
2004-03-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/Makefile.am
	* plug-ins/help/locales.[ch]: new files with code to handle locales.

	* plug-ins/help/help.c: changed accordingly.

	* plug-ins/help/domain.[ch]: added support for a fallback URL to
        handle missing help content. i18n support is missing still.
2004-03-18 00:11:03 +00:00
Simon Budig 5391cbade9 ensure that each rank of a brushpipe is >= 1.
2004-03-17  Simon Budig  <simon@gimp.org>

	* app/core/gimpbrushpipe.c: ensure that each rank of a
	brushpipe is >= 1.

	Fixes bug #137529
2004-03-17 20:53:07 +00:00
Sven Neumann b50d45d06c app/widgets/gimpbrushfactoryview.c app/widgets/gimpdatafactoryview.c
2004-03-17  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpbrushfactoryview.c
	* app/widgets/gimpdatafactoryview.c
	* app/widgets/gimppatternfactoryview.c: removed redundant code.
2004-03-17 18:49:44 +00:00
Simon Budig e2d5ed6244 app/gui/channels-commands.c app/gui/layers-commands.c
2004-03-17  Simon Budig  <simon@gimp.org>

	* app/gui/channels-commands.c
	* app/gui/layers-commands.c
	* app/gui/vectors-commands.c
	* app/widgets/gimpitemtreeview.c: shuffled some
	gimp_image_flush()'es around.
2004-03-17 16:45:18 +00:00
Simon Budig 23711e13d3 app/gui/channels-commands.c app/gui/layers-commands.c Make sure that
2004-03-17  Simon Budig  <simon@gimp.org>

	* app/gui/channels-commands.c
	* app/gui/layers-commands.c
	* app/gui/vectors-commands.c: Make sure that non-dialog creation
	of layer/channels/vectors properly updates the image. Also
	clear the new channel unconditionally.

	Change the name of the newly created item to not include the "Copy".
	It isn't a copy.

	* app/widgets/gimpitemtreeview.c: Don't try to assemble translated
	strings.

	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpvectorstreeview.c: properly overwrite the
	tooltip for the "New" button.

	Sorry, some real string changes ahere, but they were necessary.
2004-03-17 16:12:21 +00:00
Michael Natterer a59cc98983 push the undo group around all operations, not just around some of them.
2004-03-17  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-transform.c
	(gimp_drawable_transform_paste): push the undo group around all
	operations, not just around some of them. Pulled common code
	out of the if() { } else { } construct. Cleanup.
2004-03-17 15:06:06 +00:00
Simon Budig e359fb188e Oops, forgot the fixed bug number in Changelog. 2004-03-17 14:16:45 +00:00
Simon Budig bcd96047f8 Sort the plugin menu entries with the mnemonics stripped. Avoids weird
2004-03-17  Simon Budig  <simon@gimp.org>

	* app/gui/plug-in-menus.c: Sort the plugin menu entries with
	the mnemonics stripped. Avoids weird ordering in the "C" and
	"POSIX" locales.

	* app/widgets/gimpitemtreeview.c: make a simple click on the
	"New" Button use defaults and use shift-click for the new-dialog
	invocation.

	Some more useless button cleanup:

	* app/widgets/gimpdatafactoryview.c: only create an Edit button
	when the edit_function is set.

	* app/core/gimp.c: don't set an edit func for the patterns.

	* app/gui/patterns-menu.c: Don't create the "New", "Edit" and
	"Duplicate" Menu entries for the patterns.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimppatternfactoryview.[ch]: New widget:
	gimp_pattern_factory_view. Necessary to be able to hide the
	"duplicate" button...

	* app/gui/dialogs-constructors.c: Use it.
2004-03-17 14:14:18 +00:00
Sven Neumann 4e0cb33472 Changes for help i18n in the core, the rest will take place in the help
2004-03-17  Sven Neumann  <sven@gimp.org>

	Changes for help i18n in the core, the rest will take place in the
	help plug-in:

	* app/text/gimptext.[ch]: removed gimp_text_get_default_language()

	* app/core/gimp-utils.[ch]: ... and added it here as
	gimp_get_default_language().

	* app/config/gimprc-blurbs.h
	* app/config/gimpdisplayconfig.[ch]: added property "help-locales".

	* app/widgets/gimphelp.c: use the new property and pass it to the
	help plug-in.

	* app/core/gimpselection.c (gimp_selection_invalidate_boundary):
	removed unused variable.
2004-03-17 13:59:42 +00:00
Simon Budig 4aef30a5aa app/widgets/gimplayertreeview.c app/widgets/gimpvectorstreeview.c remove
2004-03-17  Simon Budig  <simon@gimp.org>

	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpvectorstreeview.c
	* app/widgets/gimpdatafactoryview.c: remove basically useless
	edit buttons in the layers, vectors and patterns dialog.

	* app/widgets/gimpitemtreeview.c: Make Shift-Click on the "New"
	button create a new item using defaults.
2004-03-16 23:45:48 +00:00
Michael Natterer 49238237dc ref new tiles before unrefing the old ones.
2004-03-16  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_set_tiles): ref new
	tiles before unrefing the old ones.

	* app/core/gimpimage-undo-push.c: keep undo memsize exact by
	adjusting undo->size when the stored data changes.

	* app/core/gimpchannel.[ch] (gimp_channel_new_from_alpha)
	* app/core/gimpchannel-select.[ch] (gimp_channel_select_alpha):
	replaced "layer" parameter by "drawable".

	* app/gui/layers-commands.c
	* tools/pdbgen/pdb/selection.pdb: changed accordingly.

	* app/pdb/selection_cmds.c: regenerated.

	* app/core/gimpchannel.c
	* app/core/gimplayer.c
	* app/core/gimplayermask.[ch]
	* app/core/gimpselection.c: remdom cleanup & code review.
2004-03-16 16:23:06 +00:00