Commit Graph

3026 Commits

Author SHA1 Message Date
Sven Neumann 8339ba7f81 added more sanity checks.
2004-04-20  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpenumcombobox.c: added more sanity checks.

	* libgimpwidgets/gimpintcombobox.[ch]: added another GimpIntComboBox
	constructor: gimp_int_combo_box_new_array().

	* plug-ins/Lighting/lighting_ui.c
	* plug-ins/MapObject/mapobject_ui.c
	* plug-ins/common/CML_explorer.c: ported to GimpIntComboBox.
2004-04-20 08:35:36 +00:00
Sven Neumann 9f3c7944aa libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h
2004-04-20  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpintcombobox.[ch]: added new widget
	GimpIntComboBox, a GtkComboBox with a simple list store to hold a
	label and an associated integer value. This is going to replace
	gimp_int_option_menu.

	* plug-ins/common/jpeg.c
	* plug-ins/print/gimp_main_window.c: ported these two plug-ins to
	the newly added widget.

2004-04-20  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/libgimpwidgets-docs.sgml
	* libgimpwidgets/libgimpwidgets-sections.txt
	* libgimpwidgets/libgimpwidgets.types
	* libgimpwidgets/tmpl/gimpintcombobox.sgml: added docs for the new
	GimpIntComboBox widget.
2004-04-20 00:01:57 +00:00
Sven Neumann c5e41cdfa6 removed unused return locations for menu item pointers.
2004-04-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig.c: removed unused return locations for menu
	item pointers.
2004-04-19 22:22:26 +00:00
Henrik Brix Andersen c02669cef3 plug-ins/script-fu/scripts/gimp-headers.scm applied a patch from William
2004-04-19 Henrik Brix Andersen <brix@gimp.org>

* plug-ins/script-fu/scripts/gimp-headers.scm
* plug-ins/script-fu/scripts/gimp-labels.scm: applied a patch from
William Skaggs which changes the sub menu title for the gimp web
theme to classic.gimp.org. Fixes bug #137036.
2004-04-19 09:01:23 +00:00
Pedro Gimeno 4345225504 Oops, fixed my fix.
2004-04-18  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/gauss_rle.c (gauss_rle): Oops, fixed my fix.
2004-04-18 18:11:36 +00:00
Pedro Gimeno 9f750f944c Change tabs to spaces all over the file, in preparation for other changes.
2004-04-18  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/gauss_iir.c: Change tabs to spaces all over the
	file, in preparation for other changes. Minor cleanup.

	* plug-ins/common/gauss_rle.c (gauss_rle): Plug a leak with the
	returned value from make_curve().

	* plug-ins/common/tga.c (load_image): Fix a condition which was
	preventing GRAYA images from loading.
2004-04-18 17:29:43 +00:00
Sven Neumann f50abe69a0 replaced wrong use of gimp_option_menu with gimp_int_option_menu.
2004-04-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/gimp_main_window.c: replaced wrong use of
	gimp_option_menu with gimp_int_option_menu.
2004-04-17 23:33:17 +00:00
Sven Neumann adf74ffb2c use a GtkComboBox for SF-OPTION.
2004-04-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: use a GtkComboBox for
	SF-OPTION.
2004-04-17 22:47:56 +00:00
Sven Neumann 6c1d7329a8 plug-ins/winicon/icodialog.c ported GtkOptionMenu to GtkComboBox.
2004-04-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icodialog.c
	* plug-ins/winicon/icosave.c: ported GtkOptionMenu to GtkComboBox.
2004-04-17 22:35:01 +00:00
Henrik Brix Andersen d4094c3e22 live preview doesn't modify the undo history of the image anymore, label
2004-04-17 Henrik Brix Andersen <brix@gimp.org>

* plug-ins/common/jpeg.c (save_dialog): live preview doesn't
modify the undo history of the image anymore, label changed
accordingly. Fixes bug #140296.
2004-04-17 00:14:35 +00:00
Pedro Gimeno f4d3161661 changed a call to gimp_image_undo_enable to _undo_disable which was
2004-04-16  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/tile.c (tile): changed a call to
	gimp_image_undo_enable to _undo_disable which was obviously the
	intention of the author. Added a call to gimp_drawable_update to
	get the previews refreshed.
2004-04-16 17:45:30 +00:00
Sven Neumann 9bf8d277fb trivial change not worth mentioning 2004-04-16 14:34:40 +00:00
Sven Neumann 39ad499cee present the help browser window.
2004-04-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c (browser_dialog_load): present the
	help browser window.
2004-04-16 13:19:54 +00:00
Sven Neumann 01ee19d527 use a GtkComboBox instead of GtkCombo and keep the history in a
2004-04-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c: use a GtkComboBox instead of
	GtkCombo and keep the history in a GtkListStore.
2004-04-16 12:35:29 +00:00
Sven Neumann db40722817 plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl removed the
2004-04-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/AlienMap.c: removed the AlienMap plug-in since
	AlienMap2 duplicates its functionality.

	* plug-ins/common/AlienMap2.c: applied patch from William Skaggs
	with a couple of user interface improvements (bug #140079).
2004-04-15 22:06:28 +00:00
Sven Neumann 40e85cd986 fixed gtk+ includes, added a warning that deprecated widgets are being
2004-04-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icodialog.c: fixed gtk+ includes, added a
	warning that deprecated widgets are being used.
2004-04-15 20:11:44 +00:00
Sven Neumann 48bf883825 configure.in plug-ins/Makefile.am plug-ins/winicon/Makefile.am
2004-04-15  Sven Neumann  <sven@gimp.org>

	* configure.in
	* plug-ins/Makefile.am
	* plug-ins/winicon/Makefile.am
	* plug-ins/winicon/icodialog.[ch]
	* plug-ins/winicon/icoload.[ch]
	* plug-ins/winicon/icosave.[ch]
	* plug-ins/winicon/main.[ch]: added plug-in to load and save
	Windows icon files. Plug-in written by Christian Kreibich, port to
	GIMP-2.0 API by Gregor Riepl, massive code cleanup by me. Fixes
	bug #139160.
2004-04-15 18:39:48 +00:00
Michael Natterer d5cf690a05 plug-ins/FractalExplorer/Dialogs.c plug-ins/flame/flame.c first plug-ins
2004-04-15  Michael Natterer  <mitch@gimp.org>

	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/flame/flame.c
	* plug-ins/gfig/gfig.c: first plug-ins ported to GtkFileChooser.
2004-04-15 16:58:21 +00:00
Sven Neumann 850f43b3db applied patch from Yeti that adds spinbuttons instead of simple text
2004-04-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/ifscompose.c: applied patch from Yeti that
	adds spinbuttons instead of simple text entries (bug #138132).
2004-04-15 14:14:10 +00:00
Sven Neumann dab0f9b6cf plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl removed the
2004-04-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/gicon.c: removed the GIcon plug-in (addresses
	one aspect of bug #139160).
2004-04-15 13:55:07 +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
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 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
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
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
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
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
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 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 6531b323ef [updated my latest fix] 2004-04-02 21:32:44 +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 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
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
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 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
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
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
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 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
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 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 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 5ab1807141 Update the Plugin Menu immediately after setting the last invoked plugin.
2004-03-16  Simon Budig  <simon@gimp.org>

	* app/gui/plug-in-commands.c: Update the Plugin Menu immediately
	after setting the last invoked plugin. Fixes inconsistencies
	between name shown and plugin invoked.

	Fixes #136909, #137242 and #81479 (again, the fix in
	lightening_main.c only probably was bogus, since this must not
	rely on correctly written plugins).

	* plug-ins/common/compose.c
	* plug-ins/common/decompose.c
	* plug-ins/common/film.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/smooth_palette.c
	* plug-ins/common/tile.c
	* plug-ins/fits/fits.c: Ensure that each gimp_image_undo_enable()
	had a gimp_image_undo_disable() first...
2004-03-16 01:12:21 +00:00
Simon Budig c5f27a43ae No need to use an undo_group *and* freeze/thaw an image. Just using the
2004-03-14  Simon Budig  <simon@gimp.org>

	* plug-ins/common/jpeg.c: No need to use an undo_group *and*
	freeze/thaw an image. Just using the latter keeps the undo
	history ok in both directions. Also call gimp_displays_flush()
	to make sure the undo keyboard shortcuts are enabled after the
	plugin ends.
2004-03-14 19:25:32 +00:00
Pedro Gimeno 0dcbbccfea plug-ins/script-fu/scripts/carve-it.scm
2004-03-13  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/script-fu/scripts/carve-it.scm
	* plug-ins/script-fu/scripts/chrome-it.scm
	* plug-ins/script-fu/scripts/crystal-logo.scm
	* plug-ins/script-fu/scripts/sota-chrome-logo.scm: Fixed to avoid
	pasting to a layer that was not added to any image. This was causing
	the scripts to abort, because gimp-edit-paste is now failing in that
	case.
2004-03-13 16:13:34 +00:00
Michael Natterer a779e74817 Cleaned up the remaining libgimp API issues:
2004-03-12  Michael Natterer  <mitch@gimp.org>

	Cleaned up the remaining libgimp API issues:

	* libgimp/gimppixelfetcher.[ch] (enum GimpPixelFetcherEdgeMode):
	added new enum value GIMP_PIXEL_FETCHER_EDGE_BACKGROUND so we
	can actually use the bg_color feature of the GimpPixelFetcher.

	(gimp_pixel_fetcher_new): added "gboolean shadow" parameter
	because it must not change while the GimpPixelFetcher exists.

	(gimp_pixel_fetcher_set_shadow): removed.

	(gimp_pixel_fetcher_set_bg_color): added "GimpRGB *color"
	parameter and don't call gimp_palette_get_foreground().

	(gimp_pixel_fetcher_get_pixel): handle BACKGROUND mode. Cleaned up
	the function.

	(gimp_get_bg_guchar)
	(gimp_get_fg_guchar): removed these functions...

	* libgimp/gimpdrawable.[ch]: ...and added
	gimp_drawable_get_color_uchar() instead.

	* libgimp/gimp.def
	* plug-ins/common/blinds.c
	* plug-ins/common/checkerboard.c
	* plug-ins/common/cubism.c
	* plug-ins/common/curve_bend.c
	* plug-ins/common/displace.c
	* plug-ins/common/edge.c
	* plug-ins/common/illusion.c
	* plug-ins/common/mblur.c
	* plug-ins/common/mosaic.c
	* plug-ins/common/plasma.c
	* plug-ins/common/polar.c
	* plug-ins/common/ripple.c
	* plug-ins/common/shift.c
	* plug-ins/common/spread.c
	* plug-ins/common/tileit.c
	* plug-ins/common/whirlpinch.c
	* plug-ins/gflare/gflare.c
	* plug-ins/libgimpoldpreview/gimpoldpreview.c: changed accordingly.

	(Didn't test the changed plug-ins because I wanted to get this
	API change into CVS as soon as possible)
2004-03-12 22:46:25 +00:00
Sven Neumann 6e88726e56 applied a patch from Kevin Cozens that improves Script-Fu error reporting
2004-03-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
	applied a patch from Kevin Cozens that improves Script-Fu error
	reporting (addresses bug #73610).
2004-03-12 19:42:56 +00:00
Sven Neumann af78bf373f when running in interactive mode, get the foreground color after restoring
2004-03-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/colortoalpha.c: when running in interactive
	mode, get the foreground color after restoring the parameters from
	the last run.
2004-03-11 17:18:25 +00:00
Sven Neumann a240fed5cc marked missing strings for localization (bug #136713).
2004-03-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_object_popup.c: marked missing strings
	for localization (bug #136713).

	* plug-ins/imagemap/imap_stock.c (imap_stock_items): fixed bogus
	translation domain for stock item (bug #136713).
2004-03-10 12:20:14 +00:00
Sven Neumann 9bd4c7ac27 added missing localization for popup menu (bug #136706).
2004-03-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/ifscompose.c: added missing localization for
	popup menu (bug #136706).
2004-03-10 11:42:12 +00:00
Sven Neumann 2e16b347d5 fixed typo (bug #136610).
2004-03-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/general.c: fixed typo (bug #136610).
2004-03-09 09:56:32 +00:00
Sven Neumann 784870c87f minor cleanup 2004-03-09 01:45:21 +00:00
Sven Neumann 30f01b530f shut up CVS 2004-03-09 01:38:20 +00:00
Sven Neumann 55d14fd0f0 Finished some work that Brix started on the help system. It's now possibly
2004-03-09  Sven Neumann  <sven@gimp.org>

	Finished some work that Brix started on the help system. It's
	now possibly to use an external web-browser for context help
	(bug #136081):

	* configure.in
	* plug-ins/Makefile.am
	* plug-ins/help/Makefile.am
	* plug-ins/help/domain.[ch]
	* plug-ins/help/help.c: new plug-in that does the help domain
	management. Most of this used to live in the helpbrowser plug-in.

	* plug-ins/helpbrowser/Makefile.am
	* plug-ins/helpbrowser/domain.[ch]: removed these two files here.

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

	* app/widgets/gimphelp.c: use the new help plug-in.
2004-03-09 01:37:56 +00:00
Sven Neumann 4039557193 added missing call to INIT_I18N() (spotted by Yuheng Xie, bug #136535).
2004-03-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/svg.c (run): added missing call to INIT_I18N()
	(spotted by Yuheng Xie, bug #136535).
2004-03-08 12:17:57 +00:00
Manish Singh 960735fba3 don't pass extra parameters to undo group functions. Fixes #136524.
2004-03-08  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/shadow_bevel.py: don't pass extra
        parameters to undo group functions. Fixes #136524.
2004-03-08 08:12:11 +00:00
Sven Neumann c290943acd added missing call to INIT_I18N() (spotted by iiccii@hotmail.com).
2004-03-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mng.c (run): added missing call to INIT_I18N()
	(spotted by iiccii@hotmail.com).
2004-03-08 00:52:57 +00:00
Hans Breuer 2036638f73 updated
2004-03-07  Hans Breuer  <hans@breuer.org>

	* themes/Default/images/makefile.msc
	  app/*/makefile.msc plug-ins/makefile.msc : updated
2004-03-07 23:13:51 +00:00
Sven Neumann c0ef88c206 corrected check for number of PDB parameters. Fxes bug #136403.
2004-03-06  Sven Neumann  <sven@gimp.org>

        * plug-ins/common/tiff.c (run): corrected check for number of PDB
        parameters. Fxes bug #136403.

	* app/widgets/gimpfontview.c: removed unused variables.
2004-03-06 21:43:01 +00:00
Sven Neumann f01f34a8f7 check random range before calling g_rand_int_range(). Fixes bug #136321.
2004-03-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/plasma.c (add_random): check random range before
	calling g_rand_int_range(). Fixes bug #136321.
2004-03-05 19:10:20 +00:00
Sven Neumann 8804cbd605 include stdplugins-intl.h so that "Preview" ends up in the plug-in
2004-03-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/libgimpoldpreview/gimpoldpreview.c: include
	stdplugins-intl.h so that "Preview" ends up in the plug-in
	translation domain (bug #136303).
2004-03-05 17:38:53 +00:00
Simon Budig 7a7a6a2a20 Display Frame numbers from 1 to n instead of 0 to n-1. Less confusing for
2004-03-04  Simon Budig  <simon@gimp.org>

	* plug-ins/common/animationplay.c: Display Frame numbers from
	1 to n instead of 0 to n-1. Less confusing for the user.

	Fixes bug #136124
2004-03-04 11:56:17 +00:00
Manish Singh db856068bb Disable PF_*ARRAY for now. Addresses #122049.
2004-03-02  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Disable PF_*ARRAY for now. Addresses
        #122049.
2004-03-02 18:25:29 +00:00
Pedro Gimeno f49a8c63ff Fix handling of positive Y displacements of the bumpmap. Thanks to Joao
2004-03-02  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/bumpmap.c (bumpmap): Fix handling of positive Y
	displacements of the bumpmap. Thanks to Joao S.O. Bueno for
	tracking this. Fixes bug #135866.
2004-03-02 12:26:38 +00:00
Manish Singh d34136153f Moved to the Test menu, to clarify its station in life.
2004-02-20  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/pygimp/plug-ins/sphere.py: Moved to the Test menu,
        to clarify its station in life.
2004-02-20 08:55:10 +00:00
Manish Singh 843e4a30ba Do some simple validation on the GUI input. Arrays are still kinda hokey
2004-02-20  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/pygimp/gimpfu.py: Do some simple validation on the
        GUI input. Arrays are still kinda hokey though. Based on Dave Neary's
        patch, addresses bug #122049.

        * plug-ins/common/pygimp/plug-ins/sphere.py: Make sure radius is at
        least 1. Thanks to Florian Traverse for noticing. (Also in #122049)
2004-02-20 08:41:00 +00:00
Simon Budig 8636550cf6 fixed crash when the effect image is smaller than the target drawable.
2004-02-20  Simon Budig  <simon@gimp.org>

	* plug-ins/common/lic.c: fixed crash when the effect image
	is smaller than the target drawable. Major code overhaul (not
	yet fully completed), removed global variables, removed
	micro-functions that itself just invoke micro-functions, use
	more libgimpcolor functions.

	Slightly improved the algorithm by adding small random
	distorsions to the effect image. This avoids artefacts in plain
	areas.
2004-02-20 01:52:04 +00:00
Simon Budig b60050534c fixed gimp_dialog_new invocation. Also fixed a blatant error in the
2004-02-19  Simon Budig  <simon@gimp.org>

	* plug-ins/common/lic.c: fixed gimp_dialog_new invocation.
	Also fixed a blatant error in the algorithm (GimpRGB has a
	range from 0..1 for each component...) and now the plugin
	actually does something useful.
2004-02-19 15:04:28 +00:00
Pedro Gimeno 6193db8738 Corrected the pairing of gimp_drawable_get/gimp_drawable_detach and other
2004-02-17  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/pagecurl/pagecurl.c: Corrected the pairing of
	gimp_drawable_get/gimp_drawable_detach and other cleanups.
	(do_curl_effect): Fixed a bug spotted by Simon Budig: uninitialized
	data could be exposed when applying the effect to non-rectangular
	selections.
2004-02-17 19:56:13 +00:00
Sven Neumann 09af96c12d set the Undo button insensitive, not the whole dialog (bug #134419). Also
2004-02-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig.c (gfig_response): set the Undo button
	insensitive, not the whole dialog (bug #134419). Also start the
	dialog with the Undo button set insensitive.
2004-02-16 12:44:21 +00:00
Sven Neumann 8ebce54f6b only call gimp_ui_init() when being run in interactively. Should fix bug
2004-02-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gif.c: only call gimp_ui_init() when being run
	in interactively. Should fix bug #134423.
2004-02-15 11:33:52 +00:00
Manish Singh 8672dbf34c Initialize dest to NULL, make it so the temp variable use for
2004-02-13  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/psd.c (load_image): Initialize dest to NULL,
        make it so the temp variable use for PANOTOOLS_FIX is only declared
        when it is enabled.
2004-02-14 03:54:41 +00:00
Adam D. Moss c8fa27daa6 2004-02-12 / v3.0.14 / Adam D. Moss Fix a twisted utf8-obsessive bug
*  2004-02-12 / v3.0.14 / Adam D. Moss
 *       Fix a twisted utf8-obsessive bug diagnosed by
 *       Piotr Krysiuk <KrysiukP@prokom.pl>
 *
 *  2004-01-06 / v3.0.13 / Adam D. Moss
 *       Disable one of the PanoTools fixes by default, since it causes
 *       regressions in some ordinary PSD file loading.
 *
 *  2004-01-06 / v3.0.12 / Adam D. Moss
 *       Try to avoid 0-sized drawables (including channels) in all
 *       circumstances under GIMP 2.
 *
 *  2004-01-01 / v3.0.11 / Daniel Rogers <dsrogers@phaseveloctiy.org>
 *       GIMP crashes on 0x0 layers, so we skip them.
2004-02-12 15:24:11 +00:00
Simon Budig 771e44dca1 Fixed Undo handling, make sure that the bumpmap is big enough to avoid
2004-02-09  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/scripts/add-bevel.scm: Fixed Undo
	handling, make sure that the bumpmap is big enough to
	avoid artefacts.

	Fixes bug #130636.
2004-02-09 16:41:54 +00:00
Sven Neumann 01ea8d5587 applied patch from Wolfgang Hofer that fixes bug #133244.
2004-02-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: applied patch from Wolfgang Hofer
	that fixes bug #133244.
2004-02-09 14:47:41 +00:00
Sven Neumann cefbda88e0 applied patch from Wolfgang Hofer that fixes bug #133244.
2004-02-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: applied patch from Wolfgang Hofer
	that fixes bug #133244.
2004-02-09 14:43:46 +00:00
Sven Neumann 917f8fdb35 removed some workarounds for bugs in the GIMP 1.2 text functions that
2004-02-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/text-circle.scm: removed some workarounds
	for bugs in the GIMP 1.2 text functions that don't exist any longer.
2004-02-09 01:28:14 +00:00
Hans Breuer b15707c4e9 access dest[alpha] only if (has_alpha); remove stray semicolon, fixes bug
2004-02-08  Hans Breuer  <hans@breuer.org>

	* plug-ins/common/nova.c : access dest[alpha] only if (has_alpha);
	remove stray semicolon, fixes bug #132503
2004-02-08 21:21:38 +00:00
David Odin ec1db1c22d applied a modified patch from Pablo d'Angelo, which add support for tiff
* plug-ins/common/tiff.c: applied a modified patch from Pablo
	d'Angelo, which add support for tiff layer names when the name is 7
	bits clean.

	Fixes bug #131044
2004-02-08 00:40:46 +00:00
Hans Breuer 5cbb416a91 new file to keep common definitions for the msc build use common
2004-02-07  Hans Breuer  <hans@breuer.org>

	* gimpdefs.msc : new file to keep common definitions for the msc build
	* **/makefile.msc : use common defintions, e.g. GIMP_VER
	* Makefile.am : add the former to EXTRA_DIST
2004-02-07 23:01:33 +00:00
Sven Neumann 42a11f42f8 quit the main loop when the dialog is destroyed. Fixes bug #133532.
2004-02-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_main.c (dialog): quit the main loop when
	the dialog is destroyed. Fixes bug #133532.
2004-02-05 18:26:29 +00:00
David Odin da6b161eff Fixes the layout of the rendered text. Fixes bug #131634
* plug-ins/script-fu/scripts/text-circle.scm: Fixes the layout of the
	rendered text.
	Fixes bug #131634
2004-02-05 16:13:40 +00:00
Manish Singh 11410ff7f0 Translate None to NULL when passing strings.
2004-02-05  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-pdb.c (pygimp_param_from_tuple): Translate
        None to NULL when passing strings.
2004-02-05 09:17:19 +00:00
Manish Singh b720fb2a9b remove unused variable randomize.
2004-02-03  Manish Singh  <yosh@gimp.org>

        * plug-ins/maze/maze_face.c (maze_dialog): remove unused variable
        randomize.
2004-02-03 19:23:43 +00:00
Michael Natterer 0e993d1702 applied patch from Kevin Cozens <kcozens@interlog.com> which removes the
2004-02-03  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/*.scm: applied patch from Kevin
	Cozens <kcozens@interlog.com> which removes the use of deprecated
	constants in all scripts. Fixes bug #133270.
2004-02-03 11:46:27 +00:00
Michael Natterer f77ff9d400 call gimp_uninstall_temp_proc() with script->pdb_name, not
2004-02-03  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_free_script):
	call gimp_uninstall_temp_proc() with script->pdb_name, not
	script->script_name. Fixes bug #133280.
2004-02-03 11:37:03 +00:00
Michael Natterer 61ac7167d6 Reworked random seed handling once more:
2004-02-01  Michael Natterer  <mitch@gimp.org>

	Reworked random seed handling once more:

	* libgimpwidgets/gimpwidgets.c (gimp_random_seed_new): make sure
	the displayed random seed value is always the one which will be
	used, whether "Randomize" is checked or not.

	* plug-ins/common/blur.c
	* plug-ins/common/plasma.c
	* plug-ins/common/randomize.c
	* plug-ins/common/sinus.c
	* plug-ins/common/snoise.c
	* plug-ins/maze/algorithms.c
	* plug-ins/maze/maze.c: if running interactively, always take
	the seed value produced by the gimp_random_seed widget and don't
	touch it because the widgets honors the "randomize" toggle
	correctly now.

	For noninteractive and last_vals runs, look at the "randomize"
	boolean and generate a seed if it is TRUE.

	Initialize the random number generators from the seed determined
	by either of the above ways and don't fiddle with it in the inner
	algorithms itself.

	* plug-ins/gflare/gflare.c (plugin_run): initialize the GRand
	from the seed unconditionally.

	(ed_make_page_sflare): no need to get the entry from the random
	seed widget to get its adjustment. Instead get the adjustment
	directly.

	(The random handling code of gflare looks somewhat broken, but
	that applies to the whole plug-in).
2004-02-01 13:22:09 +00:00
Manish Singh 5f87334f0c use G_VA_COPY for copying va_lists.
2004-01-31  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/tiff.c (tiff_warning): use G_VA_COPY for copying
        va_lists.
2004-02-01 00:45:49 +00:00
Dave Neary 95ed7031f4 libgimpwidgets/gimpwidgets.c Modify random seed widget to allow the user
2004-02-01  Dave Neary  <bolsh@gimp.org>

        * libgimpwidgets/gimpwidgets.c
        * libgimpwidgets/gimpwidgets.h: Modify random seed widget to
        allow the user to specify that a seed should be chosen
        randomly for them (useful to allow re-running random plug-ins
        several times to get several different results).

        * plug-ins/common/blur.c
        * plug-ins/common/plasma.c
        * plug-ins/common/randomize.c
        * plug-ins/common/sinus.c
        * plug-ins/common/snoise.c
        * plug-ins/gflare/gflare.c
        * plug-ins/maze/algorithms.c
        * plug-ins/maze/maze.c
        * plug-ins/maze/maze.h
        * plug-ins/maze/maze_face.c: Changed appropriately.

        This fixes bug #129529.
2004-01-31 23:34:56 +00:00