Commit graph

1638 commits

Author SHA1 Message Date
Maurits Rijk 39f06f450c added size entry. Fixes #143156 (Use size entry widget in Borderaverage
2004-09-28  Maurits Rijk  <m.rijk@chello.nl>

	* plug-ins/common/borderaverage.c: added size entry. Fixes #143156
	(Use size entry widget in Borderaverage plug-in)
2004-09-28 18:48:12 +00:00
David Odin 5c6e0c8e40 use the same preview as in all other plug-ins.
* plug-ins/common/exchange.c: use the same preview as in all other plug-ins.
2004-09-26 11:50:03 +00:00
David Odin b1f789d6f0 Added a preview and #if'ed out some unreachable code.
* plug-ins/common/engrave.c: Added a preview and #if'ed out some
  unreachable code.
2004-09-25 14:06:11 +00:00
David Odin b97fa2eaa6 made the preview behave like in all other plug-ins by using a
* plug-ins/common/dog.c: made the preview behave like in all other plug-ins
  by using a GimpDrawablePreview.  This allowed to remove a bunch of
  complicated code.
2004-09-25 10:42:12 +00:00
David Odin eb01510ec9 Added a preview and made some small cleanups.
* plug-ins/common/oilify.c: Added a preview and made some small cleanups.
2004-09-24 23:16:19 +00:00
Michael Natterer 4009cb1a6e added a GtkPaned for packing preview and controls so the controls are
2004-09-23  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/bumpmap.c (bumpmap_dialog): added a GtkPaned for
	packing preview and controls so the controls are resizable again.
2004-09-23 11:45:53 +00:00
Sven Neumann 0e91274ef4 cosmetics.
2004-09-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/bumpmap.c (bumpmap_dialog): cosmetics.
2004-09-22 22:56:56 +00:00
Michael Natterer 35b372ea08 tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "Palette" pdb
2004-09-22  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/groups.pl
	* tools/pdbgen/pdb/palette.pdb: removed the "Palette" pdb group...

	* tools/pdbgen/pdb/context.pdb: and added its functions to the
	"Context" namespace instead.

	* app/pdb/Makefile.am
	* app/pdb/palette_cmds.c: removed.

	* app/pdb/procedural_db.c: added them to the pdb_compat hash table.

	* libgimp/Makefile.am
	* libgimp/gimppalette_pdb.[ch]: removed.

	* libgimp/gimppalette.[ch]: new files holding compat functions
	which call gimp_context_*() functions.

	* libgimp/gimp.h
	* libgimp/gimpui.c: changed accordingly.

	* app/pdb/context_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimp_pdb.h
	* libgimp/gimpcontext_pdb.[ch]: regenerated.

	* plug-ins/MapObject/mapobject_image.c
	* plug-ins/MapObject/mapobject_preview.c
	* plug-ins/common/apply_lens.c
	* plug-ins/common/blinds.c
	* plug-ins/common/borderaverage.c
	* plug-ins/common/checkerboard.c
	* plug-ins/common/colortoalpha.c
	* plug-ins/common/cubism.c
	* plug-ins/common/exchange.c
	* plug-ins/common/film.c
	* plug-ins/common/gif.c
	* plug-ins/common/grid.c
	* plug-ins/common/mapcolor.c
	* plug-ins/common/mblur.c
	* plug-ins/common/mng.c
	* plug-ins/common/mosaic.c
	* plug-ins/common/papertile.c
	* plug-ins/common/png.c
	* plug-ins/common/polar.c
	* plug-ins/common/semiflatten.c
	* plug-ins/common/sinus.c
	* plug-ins/common/sparkle.c
	* plug-ins/common/vpropagate.c
	* plug-ins/common/warp.c
	* plug-ins/common/whirlpinch.c
	* plug-ins/gfig/gfig-style.c
	* plug-ins/gfli/gfli.c
	* plug-ins/ifscompose/ifscompose.c
	* plug-ins/maze/handy.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/pygimp/gimpmodule.c
	* plug-ins/script-fu/scripts/*.scm: changed accordingly.
2004-09-22 18:43:09 +00:00
Sven Neumann 531935c762 moved the preview to the left.
2004-09-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/bumpmap.c: moved the preview to the left.
2004-09-22 00:16:45 +00:00
Sven Neumann 12bbec374b let the dialog collapse with the expander by making it not resizable.
2004-09-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c (save_dialog): let the dialog collapse
	with the expander by making it not resizable.
2004-09-21 10:42:55 +00:00
Dave Neary ddb73eb8cc Correctly set overlay, hard light and soft light modes from .psd files.
2004-09-21  Dave Neary  <bolsh@gimp.org>

	* plug-ins/common/psd.c: Correctly set overlay, hard light and
	soft light modes from .psd files. Fixes bug #153229.
2004-09-21 09:00:55 +00:00
Sven Neumann 331b1330c4 set to 90dpi as a workaround for bug #143300.
2004-09-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/svg.c (SVG_DEFAULT_RESOLUTION): set to 90dpi as
	a workaround for bug #143300.
2004-09-20 23:33:35 +00:00
Sven Neumann bb9c250eec added tooltips, enabled "Compensate for darkening" by default, some minor
2004-09-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/bumpmap.c: added tooltips, enabled "Compensate
	for darkening" by default, some minor cleanups.
2004-09-20 14:58:52 +00:00
David Odin bc68cf107e added a preview. Not sure if it is really useful...
* plug-ins/common/deinterlace.c: added a preview. Not sure if it is
  really useful...
2004-09-20 13:36:20 +00:00
David Odin 2b41574f66 added a preview.
* plug-ins/common/shift.c: added a preview.
2004-09-20 11:47:13 +00:00
Sven Neumann a6150e02ca some tweaks to the dialog layout.
2004-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/bumpmap.c: some tweaks to the dialog layout.
2004-09-19 21:49:58 +00:00
David Odin 790d91a684 use a GimpDrawablePreview instead of a very complicated homemade preview.
* plug-ins/common/bumpmap.c: use a GimpDrawablePreview instead of a
  very complicated homemade preview.  Many small changes in the code
  too, and some cleanups. I hope I didn't break anything.
2004-09-19 20:53:34 +00:00
Sven Neumann 8e8fa93c25 applied a patch by Peter Kirchgessner that solves a problem with the
2004-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c (ps_open): applied a patch by Peter
	Kirchgessner that solves a problem with the recognition of the
	bounding box. Fixes bug #152829.
2004-09-19 10:54:48 +00:00
David Odin a971903384 fix the preview for the zoom blur mode.
* plug-ins/common/mblur.c: fix the preview for the zoom blur mode.
2004-09-15 21:08:58 +00:00
Sven Neumann 5f1373436c fixed code that handles drawing outside of the preview area.
2004-09-15  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.c
	(gimp_preview_area_[draw|blend|mask]): fixed code that handles
	drawing outside of the preview area.

	* plug-ins/common/unsharp.c (preview_update): draw the preview
	directly from the pixel region.
2004-09-15 20:51:00 +00:00
Sven Neumann bfa352bae0 libgimp/gimpdrawablepreview.[ch] renamed gimp_drawable_preview_draw() to
2004-09-15  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.[ch]
	* libgimp/gimpui.def: renamed gimp_drawable_preview_draw() to
	gimp_drawable_preview_draw_buffer() and added a rowstride
	parameter. Added new functions gimp_drawable_preview_get_drawable()
	and gimp_drawable_preview_draw_region().

	* plug-ins/common/mblur.c: added a preview that uses the
	shadow tiles as the preview buffer and draws using the new
	gimp_drawable_preview_draw_region() API.

	* plug-ins/common/photocopy.c
	* plug-ins/common/softglow.c: use gimp_drawable_preview_draw_region().

	* plug-ins/common/cartoon.c
	* plug-ins/common/despeckle.c
	* plug-ins/common/edge.c
	* plug-ins/common/gauss.c
	* plug-ins/common/grid.c
	* plug-ins/common/neon.c
	* plug-ins/common/noisify.c
	* plug-ins/common/sel_gauss.c
	* plug-ins/common/sharpen.c
	* plug-ins/common/sobel.c
	* plug-ins/common/spread.c
	* plug-ins/common/struc.c
	* plug-ins/common/unsharp.c
	* plug-ins/common/wind.c: use gimp_drawable_preview_draw_buffer().
2004-09-15 19:56:01 +00:00
Sven Neumann 6d02719401 plug-ins/common/flarefx.c embed the preview into a sunken frame and put it
2004-09-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/flarefx.c
	* plug-ins/common/nova.c: embed the preview into a sunken frame
	and put it into the upper left corner of the dialog.
2004-09-14 11:43:02 +00:00
Sven Neumann e2d8f7e48d make the "Save EXIF data" toggle insensitive when no EXIF data is present
2004-09-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c (save_dialog): make the "Save EXIF data"
	toggle insensitive when no EXIF data is present (bug #140042).

	* app/display/gimpdisplayshell-close.c: as suggested by the HIG,
	ask the user to save the image when the last display is being
	closed. Addresses some issues raised in bug #106726.
2004-09-13 21:58:27 +00:00
Sven Neumann 2449510d5b some code cleanup.
2004-09-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c: some code cleanup.
2004-09-13 16:29:59 +00:00
Sven Neumann 6c2aa00188 use a combo box for format selection.
2004-09-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/aa.c (aa_dialog): use a combo box for format
	selection.
2004-09-12 21:29:46 +00:00
David Odin 35cb43787b added a default value (TRUE) for the update_preview toggle.
* plug-ins/common/edge.c: added a default value (TRUE) for the
  update_preview toggle.

* plug-ins/common/wind.c: ported to GimpPreviewArea, so the preview is
  much more useful now.
2004-09-11 21:39:36 +00:00
David Odin 004a5e0cd8 ported to GimpPreviewArea. 100 less lines of code and much more features!
* plug-ins/common/edge.c: ported to GimpPreviewArea. 100 less lines of
  code and much more features!
2004-09-11 19:11:04 +00:00
David Odin 9f0842f021 some code cleanup and small optimisations.
* plug-ins/common/oilify.c: some code cleanup and small optimisations.
2004-09-11 15:29:30 +00:00
Sven Neumann 94d0dfb6b3 fixed spelling.
2004-09-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/xpm.c (query): fixed spelling.
2004-09-10 17:00:28 +00:00
Sven Neumann 8f3ea939a8 improved PDB blurb and help. Very loosely based on a patch attached to bug
2004-09-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/xpm.c: improved PDB blurb and help. Very loosely
	based on a patch attached to bug #151912.
2004-09-10 12:05:00 +00:00
Michael Natterer 094909cd8a plug-ins/common/cartoon.c plug-ins/common/despeckle.c
2004-09-09  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/cartoon.c
	* plug-ins/common/despeckle.c
	* plug-ins/common/gauss.c
	* plug-ins/common/grid.c
	* plug-ins/common/neon.c
	* plug-ins/common/noisify.c
	* plug-ins/common/photocopy.c
	* plug-ins/common/sel_gauss.c
	* plug-ins/common/sharpen.c
	* plug-ins/common/sobel.c
	* plug-ins/common/softglow.c
	* plug-ins/common/spread.c
	* plug-ins/common/struc.c
	* plug-ins/common/unsharp.c: pack all drawable previews expanding.
	Also did some general cleanups like consistently naming the dialog
	variable "dialog" and the main vbox "main_vbox".
2004-09-09 16:08:56 +00:00
Sven Neumann a514ce7db1 allow to set a maximum size and center the preview area if its allocation
2004-09-09  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreviewarea.[ch]: allow to set a maximum size
	and center the preview area if its allocation extends the maximum.

	* libgimpwidgets/gimppreview.[ch]: derive from GtkVBox, moved the
	toggle button out of the table and put the table into an aspect
	frame. Added an API to set the preview boundaries. Set the maximum
	size of the GimpPreviewArea from that function.

	* libgimpwidgets/gimpwidgets.def: added new entries.

	* libgimp/gimpdrawablepreview.c: use gimp_preview_set_bounds().

	* plug-ins/common/gauss.c: pack the preview widget so that it
	resizes with the dialog.
2004-09-09 14:47:39 +00:00
Michael Natterer a2a6572519 indentation and whitespace cleanup.
2004-09-07  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/edge.c: indentation and whitespace cleanup.

	* plug-ins/common/struc.c: minor coding style issues.
2004-09-07 12:13:29 +00:00
Michael Natterer 6d86a4da42 applied patch from Alan Horkan which improves the blurb and help texts.
2004-09-07  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/xwd.c (query): applied patch from Alan Horkan
	which improves the blurb and help texts. Fixes bug #151912.

	Unrelated: did coding style / indentation cleanup in the whole file.
2004-09-07 12:08:03 +00:00
David Odin e1673aa84d added a preview.
* plug-ins/common/struc.c: added a preview.
2004-09-06 20:12:32 +00:00
David Odin d44e08aed7 use gimp_preview_invalidate() where appropriate.
* plug-ins/common/cartoon.c: use gimp_preview_invalidate() where
  appropriate.

* plug-ins/common/photocopy.c: Added a preview.
2004-09-05 21:54:34 +00:00
David Odin 7cc418aab4 Added a preview.
* plug-ins/common/cartoon.c: Added a preview.
2004-09-05 19:59:12 +00:00
Simon Budig 096e059a00 fix handling of layers with an offset. Resize the image before cropping
2004-09-05  Simon Budig  <simon@gimp.org>

	* plug-ins/common/autocrop.c: fix handling of layers with an
	offset. Resize the image before cropping when the covered area
	of a layer is partially outside the image area. Make math more
	comprehensible.
2004-09-05 15:06:53 +00:00
Sven Neumann c8f8500220 plug-ins/common/convmatrix.c plug-ins/common/smooth_palette.c renamed
2004-09-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/convmatrix.c
	* plug-ins/common/smooth_palette.c
	* plug-ins/flame/flame.c: renamed functions from doit() to
	something less silly.
2004-09-05 08:08:36 +00:00
David Odin 967bac104d ported to GimpDrawablePreview.
* plug-ins/common/noisify.c: ported to GimpDrawablePreview.
2004-09-04 20:31:41 +00:00
David Odin a53b847ac8 ported to GimpDrawablePreview.
* plug-ins/common/sel_gauss.c: ported to GimpDrawablePreview.
2004-09-03 23:22:31 +00:00
David Odin 4525c29f66 ported to GimpDrawablePreview.
* plug-ins/common/sharpen.c: ported to GimpDrawablePreview.
2004-09-03 22:32:37 +00:00
Sven Neumann 414c19762f ported to GimpDrawablePreview.
2004-09-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/grid.c: ported to GimpDrawablePreview.
2004-09-03 16:37:53 +00:00
Sven Neumann dd9cc198f5 left-align the preview.
2004-09-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/plasma.c (plasma_dialog): left-align the preview.

	* plug-ins/common/grid.c (dialog): pack the preview as in other
	plug-in dialogs and embed it into a GtkFrame.
2004-09-03 14:41:31 +00:00
Michael Natterer 67f7f1dbea plug-ins/common/neon.c plug-ins/common/noisify.c plug-ins/common/sobel.c
2004-09-02  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/neon.c
	* plug-ins/common/noisify.c
	* plug-ins/common/sobel.c
	* plug-ins/common/softglow.c
	* plug-ins/common/spread.c
	* plug-ins/common/unsharp.c: fixed various coding style and naming
	issues and added some missing signal connections to update the new
	previews.
2004-09-02 18:55:20 +00:00
David Odin 6d69fae5d8 don't assume the preview has always the same size, and do the memory
* plug-ins/common/despeckle.c: don't assume the preview has always the
  same size, and do the memory allocation in preview_update(). As a side
  effect, this fix a segfault :-).  Also save the preview toggle state
  between invocations.
2004-09-02 17:49:51 +00:00
Sven Neumann 50627802d0 made gimp_preview_draw() public, added some gtk-doc comments.
2004-09-02  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.[ch]: made gimp_preview_draw() public,
	added some gtk-doc comments.
	(gimp_preview_toggle_callback): immidiately invalidate the preview.

	* plug-ins/common/gauss.c (gauss): fixed (and simplified) handling
	of zero radii by using the new GimpPreview API.
2004-09-02 10:23:52 +00:00
Sven Neumann 8959450c2f plug-ins/common/borderaverage.c plug-ins/common/checkerboard.c
2004-09-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/borderaverage.c
	* plug-ins/common/checkerboard.c
	* plug-ins/common/diffraction.c
	* plug-ins/common/illusion.c
	* plug-ins/common/polar.c
	* plug-ins/common/ripple.c
	* plug-ins/common/spread.c
	* plug-ins/common/video.c: don't pass run_mode to
	gimp_rgn_iterator_new(), it's unused. Removes the need for ir being
	a global variable.
2004-09-02 01:23:09 +00:00
Sven Neumann 3155d682a5 libgimp/gimpdrawablepreview.[ch] always show the "Preview" check button.
2004-09-01  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablepreview.[ch]
	* libgimpwidgets/gimppreview.[ch]: always show the "Preview" check
	button. Simplified the preview APIs, moved the "size" style
	property to the GimpPreview class.

	* etc/gtkrc: changed the example accordingly.

	* plug-ins/common/despeckle.c
	* plug-ins/common/gauss.c
	* plug-ins/common/neon.c
	* plug-ins/common/sobel.c
	* plug-ins/common/softglow.c
	* plug-ins/common/spread.c
	* plug-ins/common/unsharp.c: follow change in GimpDrawablePreview API.
2004-09-01 14:01:10 +00:00
Sven Neumann 6f7adcf985 delay the emission of the "invalidated" signal using a timeout. Removed
2004-09-01  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.[ch]: delay the emission of the
	"invalidated" signal using a timeout. Removed hack that used to
	invalidate the preview on button-release.

	* plug-ins/common/unsharp.c: no need to fiddle with the slider
	update policies any longer.
2004-08-31 23:37:04 +00:00