* 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 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-16 Dave Neary <bolsh@gimp.org>
* plug-ins/script-fu/scripts/burn-in-anim.scm: patch from Kevin
Cozens which reinstates corona. Fixes bug #142282.
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 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-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-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.
* 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-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 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-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-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 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-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.
* plug-ins/gimpressionist/*.c: made the code much more readable by
applying the gimp's coding standard (intentation, space, etc.), and
remove the GTK_DISABLE_DEPRECATED warnings, since these files don't use
any deprecated stuff anymore.
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.
* 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 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-interface.c (script_fu_ok)
* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
use a GString for assembling the commands string instead of
g_sprintf()ing into a buffer. Removes the need for a separate loop
over all args to determine the buffer's length and makes the
remaining code smaller and more readable.
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 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-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 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-types.h (struct SFOptions): changed
"guint history" to "gint history".
* plug-ins/script-fu/script-fu-interface.c: added callbacks for
string entries and combo boxes and connect *all* widgets to callbacks.
(script_fu_ok): don't touch the widgets at all but get the values
directly now that the callbacks correctly write them to their
structs.
(script_fu_reset): don't copy the default values manually but
simply set the default values on the widgets; their callbacks will
do the rest.
* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
added some line breaks and spaces to make it more readable.
2004-09-01 Michael Natterer <mitch@gimp.org>
* libgimp/Makefile.am
* libgimp/gimpui.h
* libgimp/gimpuitypes.h
* libgimp/gimpprogressbar.[ch]: new widget GimpProgressBar which
automatically redirects any progress calls to itself while
it exists.
* plug-ins/script-fu/script-fu-interface.c: removed all progress
callback and simply use a GimpProgressBar.
2004-09-01 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py
* plug-ins/pygimp/gimpmodule.c: Hacked up support for the new
progress interface. Emphasis on hacked.
* plug-ins/pygimp/gimpmodule.c: Wrapped gimp_extension_enable(). Minor
cleanups.
* plug-ins/pygimp/pygimp-image.c
* plug-ins/pygimp/pygimp-tile.c: Minor cleanups.
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 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-scripts.[ch]: removed the GUI code...
Also did some minor cleanups.
* plug-ins/script-fu/script-fu-interface.[ch]: ...and added it here.
* plug-ins/script-fu/script-fu-types.h: new file keeping the
various struct defs needed by both the above files.
* plug-ins/script-fu/Makefile.am
* plug-ins/script-fu/siod-wrapper.c: changed accordingly.
* libgimpwidgets/gimppreview.c
* libgimpwidgets/gimppreview.h: renamed the "updated" signal to
"invalidated" and the confusing "update" virtual function to "draw".
Renamed the property with saner names, too.
Removed _get_width and _get_height functions in favor of a _get_size on.
Added a gimp_preview_invalidate function that emit the "invalidated"
signal if needed.
* libgimp/gimpdrawablepreview.c
* libgimp/gimpdrawablepreview.h: modified accordingly and fixed the
scrollbar range.
* 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: modified accordingly.
2004-08-31 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c: removed the script title
label and moved the "About" button to the action_area. Minor
cleanups.
2004-08-31 Sven Neumann <sven@gimp.org>
* plug-ins/common/curve_bend.c: don't use GDK_TOP_LEFT_ARROW
to restore the default cursor, simply pass NULL to
gdk_window_set_cursor().
2004-08-31 Sven Neumann <sven@gimp.org>
* plug-ins/common/gauss.c (gauss_dialog): update the preview when
the blur radius is being changed. gimp_coordinates_new() seems to
be broken though; there shouldn't be two signal connections needed
here.
* libgimpwidgets/gimppreview.c
* libgimpwidgets/gimppreview.h: added a GimpPreview widget, abstract
base for a GimpDrawablePreview.
* libgimpwidgets/Makefile.am
* libgimpwidgets/gimpwidgets.h
* libgimpwidgets/gimpwidgetstypes.h: modified accordingly.
* libgimp/gimpdrawablepreview.c
* libgimp/gimpdrawablepreview.h: added a GimpDrawablePreview widget
to ease the use of previews by plug-ins.
* libgimp/Makefile.am
* libgimp/gimpui.h: Changed 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: use a GimpDrawablePreview with these plug-ins.
2004-08-30 Sven Neumann <sven@gimp.org>
* plug-ins/common/colortoalpha.c
* plug-ins/common/compose.c
* plug-ins/common/decompose.c
* plug-ins/common/film.c
* plug-ins/fits/fits.c: always use the progress API, not doing it
in non-interactive mode has always been wrong.