Commit graph

1348 commits

Author SHA1 Message Date
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
Raphaël Quinet 576226c2df Do not display the warning message about unknown tags for unregistered
2004-01-31  Raphaël Quinet  <quinet@gamers.org>

	* plug-ins/common/tiff.c (tiff_warning, tiff_error): Do not
	display the warning message about unknown tags for unregistered
	private tags (>= 32768).  Fixes bug #131975.  Do not display the
	error message about random access not supported for images using
	JPEG compression.  Fixes bug #132297.  It would be better to allow
	the user to customize which messages should be displayed or not,
	but this can be done in a future release.
2004-01-31 22:01:34 +00:00
Dave Neary 87e1ea554c Removed duplicate TIFF entry from save dialog, and made the save handler
2004-01-28  Dave Neary  <bolsh@gimp.org>

        * plug-ins/common/tiff.c: Removed duplicate TIFF entry from save
        dialog, and made the save handler point to the one that doesn't
        pre-multiply by alpha. Reported on gimp-user by misfit-x. Also
        changed default value to not destroy data on save.
2004-01-28 12:30:00 +00:00
Manish Singh 1a8bbe30e3 removed unused variable.
2004-01-27  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/plugindetails.c: removed unused variable.

        * plug-ins/common/nlfilt.c: declare nlfiltRow as inline in the
        function definition as well.
2004-01-28 03:11:49 +00:00
Dave Neary e498c09743 Apply patch from Andrey Kiselev to improve defaults when there is no
2004-01-27  Dave Neary  <bolsh@gimp.org>

        * plug-ins/common/tiff.c: Apply patch from Andrey Kiselev to
        improve defaults when there is no photometric specified for
	CCITT encoded tiffs. Closes bug #131902.
2004-01-27 19:19:54 +00:00
Manish Singh d403e02315 use GSpawn instead of popen, -dBATCH, fixes #108659 for this plugin.
2004-01-25  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/postscript.c: use GSpawn instead of popen, -dBATCH,
        fixes #108659 for this plugin. Thanks to Peter Kirchgessner for the
        patch.
2004-01-25 23:46:24 +00:00
Simon Budig 40f40c8570 properly use src_rgn.rowstride when initializing the target region. Fixes
2004-01-23  Simon Budig  <simon@gimp.org>

	* plug-ins/common/mosaic.c: properly use src_rgn.rowstride when
	initializing the target region. Fixes bug #132271.
2004-01-23 22:42:28 +00:00
Henrik Brix Andersen 4b4e3338ab s/ps/postscript/ to shut up cvs.
2004-01-23 Henrik Brix Andersen <brix@gimp.org>

* plug-ins/common/.cvsignore: s/ps/postscript/ to shut up cvs.
2004-01-23 10:30:58 +00:00
Manish Singh e095443053 plug-ins/common/plugin-defs.pl renamed ps to postscript, so automake
2004-01-22  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/plugin-defs.pl
        * plug-ins/common/Makefile.am: renamed ps to postscript, so automake
        doesn't get confused.
2004-01-22 23:04:53 +00:00
Michael Natterer 7d93951d3b plug-ins/common/gbr.c store the brush/pattern's name in a parasite
2004-01-22  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/gbr.c
	* plug-ins/common/pat.c: store the brush/pattern's name in a
	parasite attached to the image. The parasite overrides the
	RUN_WITH_LAST_VALS logic if it exists. Consistently set the
	description as the layer's name, but ignore the layer's name
	when saving because it may have been modified by exporting.
	Fixes bug #131450.

	Misc. cleanup/fixes: Don't assume that strncpy() nul-terminates
	the buffer, use sizeof() instead of magic numbers, sanitize
	descriptions using gimp_any_to_utf8(), always use strncpy()
	instead of strcpy().

	* devel-docs/parasites.txt: document the "gimp-brush-name" and
	"gimp-pattern-name" parasites.
2004-01-22 14:04:45 +00:00
Manish Singh 9db6153f09 modernized, made a lot of things m4 macros, and made versioning a lot more
2004-01-21  Manish Singh  <yosh@gimp.org>

        * configure.in: modernized, made a lot of things m4 macros, and made
        versioning a lot more finegrained, in anticipation for post-2.0.

        * autogen.sh: bumped up libtool and glib minimum requirements to match
        reality.

        * gimp-2.0.pc.in
        * gimpthumb-2.0.pc.in
        * gimpui-2.0.pc.in: adapted to new versioning variables, and bring
        in RT_LIBS when needed.

        * */*/Makefile.am: adapted to new versioning variables.
2004-01-22 03:51:46 +00:00
David Odin 32bb528d0e correctly resize both panels of the GTK_PANED. This fixes bugs #132032.
* plug-ins/common/plugindetails.c: correctly resize both panels of the
	GTK_PANED. This fixes bugs #132032.

	This plug-ins still needs work.
2004-01-21 15:27:48 +00:00
Michael Natterer 0418750367 added help IDs for the libgimp export and unit dialogs.
2004-01-20  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphelp-ids.h: added help IDs for the libgimp
	export and unit dialogs.

	* libgimp/gimpexport.c
	* libgimpwidgets/gimpunitmenu.c: replaced html links by the new
	help IDs.

	* plug-ins/*/*.c: replaced all html help links by help IDs. A
	plug-in's help ID is its procedure name with '_' relaced by '-'.

	(e.g. file_tiff_save's help ID is file-tiff-save)

	Did some random indentation and whitespace cleanup.
2004-01-20 17:10:16 +00:00
Michael Natterer 8096cef139 plug-ins/common/mail.c use more already translated standard file error
2004-01-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/mail.c
	* plug-ins/common/mng.c: use more already translated standard file
	error messages. Some cleanup.
2004-01-20 11:24:14 +00:00
Pedro Gimeno 5ad621348b Call gimp_drawable_detach() after gimp_drawable_get() to plug a leak.
2004-01-19  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/ccanalyze.c (analyze): Call gimp_drawable_detach()
	after gimp_drawable_get() to plug a leak.
2004-01-19 22:47:58 +00:00
Michael Natterer 7f6dd5bf7a plug-ins/common/bz2.c plug-ins/common/gz.c plug-ins/common/hrz.c
2004-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/bz2.c
	* plug-ins/common/gz.c
	* plug-ins/common/hrz.c
	* plug-ins/common/pnm.c
	* plug-ins/sgi/sgi.c: marked some forgotten strings for
	translation and use translated standard file error messages (no
	new strings introduced), some indentation and cleanup.
2004-01-19 13:29:25 +00:00
Michael Natterer 4baf36127a plug-ins/bmp/bmpread.c plug-ins/common/gif.c plug-ins/common/jpeg.c
2004-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/bmp/bmpread.c
	* plug-ins/common/gif.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/pcx.c
	* plug-ins/common/pix.c
	* plug-ins/common/pnm.c
	* plug-ins/common/sunras.c
	* plug-ins/common/xpm.c
	* plug-ins/xjt/xjt.c: some more gimp_filename_to_utf8().
2004-01-19 11:13:35 +00:00
Michael Natterer fba87654d6 plug-ins/FractalExplorer/Dialogs.c
2004-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/FractalExplorer/FractalExplorer.c
	* plug-ins/bmp/bmpread.c
	* plug-ins/bmp/bmpwrite.c
	* plug-ins/common/CEL.c
	* plug-ins/common/CML_explorer.c
	* plug-ins/common/bz2.c
	* plug-ins/common/channel_mixer.c
	* plug-ins/common/curve_bend.c
	* plug-ins/common/dicom.c
	* plug-ins/common/gbr.c
	* plug-ins/common/gif.c
	* plug-ins/common/gifload.c
	* plug-ins/common/gih.c
	* plug-ins/common/gtm.c
	* plug-ins/common/gz.c
	* plug-ins/common/hrz.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/mail.c
	* plug-ins/common/pat.c
	* plug-ins/common/pcx.c
	* plug-ins/common/png.c
	* plug-ins/common/pnm.c
	* plug-ins/common/ps.c
	* plug-ins/common/psd.c
	* plug-ins/common/psd_save.c
	* plug-ins/common/psp.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/common/sunras.c
	* plug-ins/common/svg.c
	* plug-ins/common/tga.c
	* plug-ins/common/tiff.c
	* plug-ins/common/wmf.c
	* plug-ins/common/xbm.c
	* plug-ins/common/xpm.c
	* plug-ins/common/xwd.c
	* plug-ins/faxg3/faxg3.c
	* plug-ins/fits/fits.c
	* plug-ins/flame/flame.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gflare/gflare.c
	* plug-ins/gfli/gfli.c
	* plug-ins/gimpressionist/ppmtool.c
	* plug-ins/helpbrowser/domain.c
	* plug-ins/ifscompose/ifscompose.c
	* plug-ins/sgi/sgi.c
	* plug-ins/xjt/xjt.c: use gimp_filename_to_utf8() for filenames
	passed to g_message() and gimp_progress_init(). Definitely missed
	lots of other places but it's a start...
2004-01-19 03:06:04 +00:00
Pedro Gimeno e4467c1d5a plug-ins/common/compose.c (compose) fixed a lack of refresh in the layer
2004-01-19  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/compose.c (compose)
	* plug-ins/common/decompose.c (decompose): fixed a lack of refresh
	in the layer previews by adding calls to gimp_drawable_update()
	where appropriate. Removed redundant gimp_drawable_flush() calls.
2004-01-19 00:16:14 +00:00
David Odin a6be2ef0a1 fixed a stupid bug which could crashes with non square images. Done some
* plug-ins/common/nova.c: fixed a stupid bug which could crashes with
non square images. Done some cleanup also.
2004-01-18 23:02:55 +00:00
Manish Singh 1f943fecb0 some cleanup, restore old internal names.
2004-01-16  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/plugindetails.c: some cleanup, restore old internal         names.
2004-01-17 00:26:49 +00:00
Dave Neary c40b7bb0de Apply a (modified) patch from Pablo d'Angelo to enable saving of a
2004-01-16  Dave Neary  <bolsh@gimp.org>

        * plug-ins/common/tiff.c: Apply a (modified) patch from Pablo
        d'Angelo to enable saving of a non-premultiplied alpha channel
        and provide an UI to use it (a checkbox and extra PDB
        procedure). Fixes bug #131030.
2004-01-16 21:28:31 +00:00
David Odin 32ee5e7cb2 Do not display the color button or the "Random Hue" range when applying to
* plug-ins/common/nova.c: Do not display the color button or the
	"Random Hue" range when applying to a grayscale image.
2004-01-15 21:53:19 +00:00
David Odin 15234e8923 Re-write some parts of the algorithm. This should fix #82464, #71922 and #121966. 2004-01-15 21:08:21 +00:00
David Odin 2f49ddd717 Somewhat resurrected the SuperNova plugin. Still very buggy, though. 2004-01-15 16:21:17 +00:00
David Odin 7ec4987e35 clean up the code (use gimp_table_attach_aligned() where needed).
* plug-ins/common/plugindetails.c: clean up the code (use
	gimp_table_attach_aligned() where needed).

	* plug-ins/dbbrowser/dbbrowser.c:
	* plug-ins/dbbrowser/dbbrowser_utils.c: changed tabs to spaces.
2004-01-14 23:10:45 +00:00
David Odin 82e0e39dbf Callbacks attached to the "changed" signal for of GtkTreeSelection should return void.
Small cosmetics fixes also.
2004-01-14 10:50:58 +00:00
Sven Neumann bcfea54c59 use g_ascii_strtod() instead of the locale-dependant atof().
2004-01-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/CML_explorer.c (parse_line_to_gdouble): use
	g_ascii_strtod() instead of the locale-dependant atof().
2004-01-12 09:19:49 +00:00
Sven Neumann e001af7673 render a grayscale preview when the plug-in is run on a grayscale drawable
2004-01-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/CML_explorer.c: render a grayscale preview when
	the plug-in is run on a grayscale drawable (fixes bug #82465).
2004-01-12 08:15:03 +00:00
David Odin 0f0ecb0f9b Converted GtkCList and GTKCTree to GtkTreeModels/Views.
Fixed some memory leaks while I was at it.
Please note that this is a work in progress.
This plug-in was very broken, and still needs some work to be useful and less ugly.
2004-01-11 22:00:06 +00:00
Tor Lillqvist 6ee79a7530 Convert to native encoding (if requested) only after expanding completely.
2004-01-11  Tor Lillqvist  <tml@iki.fi>

	* app/config/gimpconfig-path.c: Convert to native encoding (if
	requested) only after expanding completely. (Mentioned in #130118,
	patch by Sven.)

	* app/base/tile-swap.c
	* app/pdb/image_cmds.c
	* app/plug-in/plug-in.c
	* libgimp/gimp.c
	* libgimpbase/gimpdatafiles.c
	* libgimpbase/gimpenv.c
	* libgimpmodule/gimpmoduledb.c
	* plug-ins/common/bz2.c
	* plug-ins/common/gz.c
	* plug-ins/common/mail.c
	* plug-ins/common/ps.c
	* plug-ins/common/url.c
	* plug-ins/gfig/gfig-preview.c
	* plug-ins/helpbrowser/helpbrowser.c
	* plug-ins/print/print.c
	* plug-ins/script-fu/script-fu-scripts.c
	* tools/pdbgen/pdb/image.pdb: Remove __EMX__ ifdefs. EMX port is
	unmaintained, presumed dead. (#131109)
2004-01-11 21:25:24 +00:00
Dov Grobgeld a9ed4eb605 fixed bug in registration of supported image types.
* plug-ins/common/CEL.c: fixed bug in registration of supported image
types.
2004-01-11 20:10:14 +00:00
Sven Neumann 16e8ee96bb applied a patch from Pablo d'Angelo that fixes layer offsets for multipage
2004-01-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff.c (load_image): applied a patch from
	Pablo d'Angelo that fixes layer offsets for multipage TIFF files
	(bug #131016).
2004-01-09 19:48:07 +00:00
Raphaël Quinet 8e6ce45355 applied a (slightly modified) patch from keith@goatman.me.uk, fixing a
2004-01-08  Raphaël Quinet  <quinet@gamers.org>

	* plug-ins/common/jpeg.c: applied a (slightly modified) patch from
	keith@goatman.me.uk, fixing a problem with the save dialog for
	grayscale images and a small rounding error in the JPEG quality
	level.  Fixes bug #130912.
2004-01-08 22:53:38 +00:00
Manish Singh 79177141c8 Add notes about menu path requirements for Load/Save handlers.
2004-01-08  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/fileops.pdb: Add notes about menu path requirements
        for Load/Save handlers.

        * plug-ins/common/png.c: Document the behavior here too.

        * app/gui/file-open-menu.c
        * app/gui/file-save-menu.c: Robustify against NULL menu_path.

        * app/pdb/fileops_cmds.c
        * libgimp/gimpfileops_pdb.c: Regenerated.
2004-01-08 19:34:07 +00:00
Henrik Brix Andersen 397cd01f6e only expose file_png_save_defaults() in the GUI.
2004-01-08 Henrik Brix Andersen <brix@gimp.org>

* plug-ins/common/png.c (query): only expose
file_png_save_defaults() in the GUI.

Fixes bug #130866.
2004-01-08 16:02:28 +00:00
Henrik Brix Andersen 4455035971 plug-ins/common/psd.c app/vectors/gimpvectors-import.c removed more double
2004-01-07 Henrik Brix Andersen <brix@gimp.org>

* plug-ins/common/psd.c
* app/vectors/gimpvectors-import.c
* tools/pdbgen/pdb/gradients.pdb: removed more double semi-colons.

* app/pdb/gradients_cmds.c: regenerated.
2004-01-07 23:18:38 +00:00
Sven Neumann 4667eac9a8 use a global parasite to store the default values. Such uglyness doesn't
2004-01-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/png.c: use a global parasite to store the default
	values. Such uglyness doesn't belong into gimprc.

	* devel-docs/parasites.txt: document the parasite used by the PNG
	plug-in.
2004-01-06 12:58:31 +00:00
Manish Singh ba92cb3ea3 remove unnecessary GTK_WIDGET() cast.
2004-01-06  Manish Singh  <yosh@gimp.org>

        * app/widgets/gimpdasheditor.c (gimp_dash_editor_new): remove
        unnecessary GTK_WIDGET() cast.

        * app/widgets/gimpstrokeeditor.c (gimp_stroke_editor_constructor):
        remove unnecessary G_OBJECT() casts.

        * libgimpbase/gimplimits.h: cosmetic cleanup.

        * libgimpbase/gimpenv.c (gimp_toplevel_directory): add (void)
        to prototype.

        * plug-ins/script-fu/script-fu-console.c (script_fu_cc_key_function):
        set cursor to end of line after history navigation.

        * plug-ins/common/struc.c (strucpi): use CLAMP0255.
2004-01-06 10:04:31 +00:00
Manish Singh ba35af08b2 Implemented default settings, for both the UI and the PDB. Settings are
2004-01-06  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/png.c: Implemented default settings, for both
        the UI and the PDB. Settings are stored in gimprc, but right now
        saving is broken since gimp_gimprc_set is broken right now.

        There are 3 new PDB entry points: file_png_save_defaults, which is
        a save function that only takes drawable and filename info, and
        uses the stored gimprc settings for the rest of the parameters.
        This is hooked up to the save magic, so using gimp_file_save to
        save as png now won't make big files anymore. The other two are
        file_png_get_defaults and file_png_set_defaults, which query
        and set the gimprc setting respectively.

        I also did some cleanup, and added a comment boolean to the
        file_png_save2 interface. The string serialization to the gimprc
        is sort of dumb, but it works.

        Next step is to do similar for jpeg and gif.
2004-01-06 09:53:35 +00:00
David Neary 80f03b1fe8 Add missing semicolon (no need for a changelog entry) 2004-01-05 21:32:25 +00:00
Sven Neumann ca0b8b046e check the return value of fopen() before using it.
2004-01-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/CEL.c (need_palette): check the return value of
        fopen() before using it.
2004-01-05 19:01:33 +00:00
Sven Neumann 66ed5ca98d fixed coding style issues, removed trailing whitespace, use gsize instead
2004-01-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/CEL.c: fixed coding style issues, removed
	trailing whitespace, use gsize instead of size_t.
2004-01-05 18:54:30 +00:00
Dov Grobgeld 1d0c9c9561 Added read and write support for 32-bit CEL files.
* Added read and write support for 32-bit CEL files.
2004-01-05 17:37:42 +00:00
Sven Neumann 69ac8e1a26 applied a modified patch provided by Joao S. O. Bueno and Dave Neary. The
2004-01-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/png.c: applied a modified patch provided by
	Joao S. O. Bueno and Dave Neary. The user can now specify whether
	color values for transparent pixels should be saved or nullified
	(bug #129472).
2004-01-05 00:57:43 +00:00
Manish Singh e211f6f73b check for shm_open in libc too, and define RT_LIBS accordingly.
2004-01-03  Manish Singh  <yosh@gimp.org>

        * configure.in: check for shm_open in libc too, and define RT_LIBS
        accordingly.

        * gimptool-1.3.in
        * app/Makefile.am
        * libgimp/Makefile.am
        * plug-ins/*/Makefile.am
        * plug-ins/common/mkgen.pl: use RT_LIBS.
2004-01-03 22:41:09 +00:00
Michael Natterer 9fe65d9765 NULL-terminate the list of strings passed to g_strconcat().
2004-01-02  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/animationplay.c (build_dialog): NULL-terminate
	the list of strings passed to g_strconcat().
2004-01-02 19:31:32 +00:00
Pedro Gimeno 913cdc1aed actually don't crash when layer previews are disabled. Fixes the crash
2003-12-27  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/jigsaw.c (jigsaw): actually don't crash when
	layer previews are disabled. Fixes the crash reported in bug
	#112012, but not the bug itself.
2003-12-27 00:57:05 +00:00