2009-02-12 Michael Natterer <mitch@gimp.org>
* plug-ins/file-faxg3/Makefile.am
* plug-ins/help/Makefile.am
* plug-ins/metadata/Makefile.am: add $(libgimpconfig) to LDADD
where it was missing. Libgimp pulls in libgimpconfig and these
plug-ins were linking against the installed libgimpconfig under
some #$&%*#%&%$& .la file circumstances.
svn path=/trunk/; revision=28017
2009-01-26 Sven Neumann <sven@gimp.org>
* plug-ins/common/curve-bend.c (p_load_pointfile): check the
return value of fgets().
svn path=/trunk/; revision=27957
2009-01-18 Sven Neumann <sven@gimp.org>
Bug 568095 – Patch to improve unsharp mask performance
* plug-ins/common/unsharp-mask.c (box_blur_line): applied
another
patch from Winston Chang with further performance improvements.
svn path=/trunk/; revision=27919
2009-01-17 Michael Natterer <mitch@gimp.org>
* all files with a GPL header and all COPYING files:
Change licence to GPLv3 (and to LGPLv3 for libgimp).
Cleaned up some copyright headers and regenerated the parsers in
the ImageMap plugin.
svn path=/trunk/; revision=27913
2009-01-17 Sven Neumann <sven@gimp.org>
Bug 568095 – Patch to improve unsharp mask performance
* plug-ins/common/unsharp-mask.c (unsharp_region): applied patch
from Winston Chang that improves performance for larger radii by
approximating the gaussian blur with a three-pass box blur.
svn path=/trunk/; revision=27912
2009-01-17 Sven Neumann <sven@gimp.org>
Bug 568016 – Black pullout parameter of plug-in-newsprint has
no effect
* plug-ins/common/newsprint.c: fixed the documentation of the
colorspace parameter.
svn path=/trunk/; revision=27908
2009-01-06 Sven Neumann <sven@gimp.org>
Bug 566498 – Noise distribution error in RGB Noise and HSV Noise
* plug-ins/common/noise-hsv.c
* plug-ins/common/noise-rgb.c: applied patch from Marco Rossini.
svn path=/trunk/; revision=27896
2008-12-28 Sven Neumann <sven@gimp.org>
Bug 563985 – jpg save dialog: "cancel" is treated like "commit"
for settings
* plug-ins/file-jpeg/jpeg.c (run): only attach the comment and
settings to the image if the save was successful.
svn path=/trunk/; revision=27843
2008-12-26 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-gbr.c: let the save procedure also accept
a
grayscale layer with alpha channel, as we do in the GIH save
procedure.
* plug-ins/common/file-gih.c: when loading a brush mask pipe,
create grayscale layers without an alpha channel. Changed the
save
procedure to also accept layers without alpha channel.
svn path=/trunk/; revision=27831
2008-12-21 Sven Neumann <sven@gimp.org>
Bug 565138 – python-fu-foggify does not check if image is in rgb
mode
* plug-ins/pygimp/plug-ins/foggify.py (foggify): fixed handling
of
grayscale images.
svn path=/trunk/; revision=27817
2008-12-17 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-png.c (load_image) (save_image): use a
tile
cache to optimize pixel access.
svn path=/trunk/; revision=27805
2008-12-03 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-tiff-save.c (save_image)
(image_is_monochrome): allow to save images that are plain white
or
plain black using the CCITT Fax compression methods.
svn path=/trunk/; revision=27756
2008-12-02 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-desktop-link.c: use the
G_KEY_FILE_DESKTOP
defines from GLib.
svn path=/trunk/; revision=27745
2008-11-27 Sven Neumann <sven@gimp.org>
Bug 562459 – PF_PALETTE: 'TypeError' when used in a plugin that
is
registered in <Image>
* plug-ins/pygimp/gimpui.defs (gimp_palette_select_button_new):
the 'title' parameter is optional.
svn path=/trunk/; revision=27735
2008-11-27 Sven Neumann <sven@gimp.org>
Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not
change
consistently...
* plug-ins/pygimp/gimpfu.py (SliderEntry): set the precision on
the slider just as we do it for the spin-button.
svn path=/trunk/; revision=27730
2008-11-27 Sven Neumann <sven@gimp.org>
Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not
change
consistently...
* plug-ins/pygimp/gimpfu.py (SpinnerEntry): initialize the
spin-button the way that gtk_spin_button_new_with_range() is
implemented.
svn path=/trunk/; revision=27726
2008-11-22 Sven Neumann <sven@gimp.org>
Bug 561899 – GIMP can't save to mounted filesystem if file
exists
* plug-ins/file-uri/uri-backend-gvfs.c (copy_uri): pass the
G_FILE_COPY_OVERWRITE flag to g_file_copy().
svn path=/trunk/; revision=27709
2008-11-19 Sven Neumann <sven@gimp.org>
Bug 558454 – Plugin Map Color Range disapears from GIMP
* plug-ins/script-fu/scripts/Makefile.am
* plug-ins/script-fu/scripts/plug-in-compat.init: new file
providing compatibility with plug-ins from older GIMP
versions. Contains a reimplementation of plug-in-color-map based
on ideas and code from Eric Lamarque.
* plug-ins/script-fu/scheme-wrapper.c (tinyscheme_init): load
the
plug-in-compat.init file.
svn path=/trunk/; revision=27683
2008-11-11 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-pdf.c: also return image type and number
of
pages. Followup to bug #559725.
svn path=/trunk/; revision=27610
2008-11-10 Sven Neumann <sven@gimp.org>
* plug-ins/common/unsharp-mask.c (unsharp_region): update the
progress less often.
svn path=/trunk/; revision=27599
2008-11-09 Michael Natterer <mitch@gimp.org>
Bye bye floating_sel_rigor() and floating_sel_relax():
* app/core/gimpdrawable.[ch] (gimp_drawable_init_src_region):
implement compositing the floating selection on the fly. Add
return parameter "TileManager **temp_tiles" which returns the temp
buffer used for compositing; the caller has to unref the tiles.
* app/core/gimpchannel-project.c
* app/core/gimplayer-project.c: unref the temp_tiles.
* app/core/gimplayer.[ch]: remove members fs.backing_store and
fs.initial.
* app/core/gimplayer-floating-sel.[ch]: remove functions rigor(),
relax(), store() and restore(), they are not needed any longer.
Some minor cleanup, more to come.
* app/core/gimpprojection-construct.c: don't composite the
floating selection before projecting because that happens on the
fly now.
* app/core/core-enums.[ch]
* app/core/gimpfloatingselundo.c
* app/core/gimpimage-undo-push.[ch]: remove the rigor and relax
undos.
* app/core/gimpdrawable.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimplayer.c
* app/xcf/xcf-save.c: remove all calls to rigor and relax and all
implementations of virtual functions that were just there to
rigor/releax around chaining up.
* tools/pdbgen/pdb/floating_sel.pdb: remove all code from the
rigor and relax wrappers and deprecate the API.
* app/pdb/floating-sel-cmds.c
* libgimp/gimpfloatingsel_pdb.[ch]: regenerated.
* plug-ins/file-xjt/xjt.c: don't call rigor and relax.
svn path=/trunk/; revision=27579
2008-11-03 Sven Neumann <sven@gimp.org>
Bug 559081 – JPEG Save dialog preview should adjust size units
* plug-ins/file-jpeg/jpeg-save.c: use
g_format_size_for_display()
to display the JPEG file size.
svn path=/trunk/; revision=27532
* plug-ins/file-psd/psd-save.c
* plug-ins/file-psd/psd-util.c: Add support for reading/writing
PSDs with the Linear Dodge layer mode which is the same as GIMPs
Addition layer mode.
svn path=/trunk/; revision=27407
2008-10-22 Sven Neumann <sven@gimp.org>
* plug-ins/print/print-preview.c
(print_preview_leave_notify_event):
check the crossing mode and don't unset the "inside" flag when
the
event is caused by a pointer grab/ungrab.
svn path=/trunk/; revision=27368
2008-10-22 Sven Neumann <sven@gimp.org>
Bug 524615 – Print not to scale
* plug-ins/print/print.c: set the unit for dimensions on the
Cairo
context used for printing to GTK_UNIT_PIXELS.
* plug-ins/print/print-draw-page.c (print_draw_page): changed
the
Cairo scale factors accordingly. Seems to fix printing on
Windows.
svn path=/trunk/; revision=27364
2008-10-22 Sven Neumann <sven@gimp.org>
Bug 556741 – Alpha layer automatically added (in psd format) but
not desired
* plug-ins/file-psd/psd-save.c: applied patch from Dennis Ranke
that flattens the projection for indexed images.
svn path=/trunk/; revision=27358
2008-10-20 Sven Neumann <sven@sven>
* plug-ins/common/bump-map.c (dialog_preview_events): use
pointer
coordinates from the passed event instead of calling
gtk_widget_get_pointer().
svn path=/trunk/; revision=27339
2008-10-20 Sven Neumann <sven@sven>
* plug-ins/common/iwarp.c: set the OK and Reset button
insensitive
until the user has defined a deformation to apply. Cleaned up
event handling.
svn path=/trunk/; revision=27338
2008-10-19 Sven Neumann <sven@gimp.org>
* plug-ins/metadata/xmp-encode.c
* plug-ins/metadata/xmp-parse.c
* plug-ins/metadata/metadata.c
* plug-ins/metadata/xmpdump.c: removal of unused includes and
other minor cleanups.
svn path=/trunk/; revision=27332
2008-10-19 Sven Neumann <sven@gimp.org>
Bug 493778 – metadata plug-in crashes on some images
* plug-ins/metadata/xmp-encode.c (gen_property): introduced a
utility function to create XML elements. Deal gracefully with
NULL
and empty values. Does not fix the crash, but fixes a warning
that
has been reported in the same bug report.
svn path=/trunk/; revision=27323
2008-10-13 Sven Neumann <sven@gimp.org>
Bug 556182 – Could you please explain a few strings [I18N]
* plug-ins/pygimp/plug-ins/py-slice.py: added translator
comments.
svn path=/trunk/; revision=27272
2008-10-09 Sven Neumann <sven@gimp.org>
Bug 555697 – build fails if configured with --without-libjpeg
* plug-ins/Makefile.am: applied patch from Simon Zilliken that
disables the build of the PSD plug-in if JPEG support is
disabled.
svn path=/trunk/; revision=27196
* plug-ins/file-psd/psd-load.c (add_layers): Some PSD files can
have channels where a compression method used for the channel data
is specified, but without any actual channel data. Handle this
case. Fix inspired by patch from Chris Mohler.
svn path=/trunk/; revision=27175
2008-10-06 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-gif-load.c (GetCode): be more tolerant
and
continue loading with a warning message if there are bits
missing
at the end of the file. Fixes bug #555280.
svn path=/trunk/; revision=27150
2008-10-06 Michael Natterer <mitch@gimp.org>
* plug-ins/common/file-gih.c
* plug-ins/common/file-xbm.c: setting a spin button's
page_increment to 1 is of no use, set it to 10 instead.
svn path=/trunk/; revision=27148
2008-10-05 Sven Neumann <sven@gimp.org>
* plug-ins/file-jpeg/jpeg.c (run): fixed problem introduced by
the
use of an enum for the subsampling factor. Fixes bug #554890.
svn path=/trunk/; revision=27129
2008-10-04 Michael Natterer <mitch@gimp.org>
* plug-ins/common/web-browser.c: return errors via return_vals
instead of displaying them with g_message().
svn path=/trunk/; revision=27128
2008-10-04 Sven Neumann <sven@gimp.org>
* plug-ins/file-jpeg/jpeg-save.c: some cleanups to the
subsampling
code; in an attempt to fix bug #555031.
svn path=/trunk/; revision=27126
2008-10-03 Hans Breuer <hans@breuer.org>
* plug-ins/common/web-browser.c : when ShellExecute() is failing give
the detailed (currently intentionally untranslated) error message via
g_message()
svn path=/trunk/; revision=27119
2008-10-03 Michael Natterer <mitch@gimp.org>
Bug 554785 – Compile failure on uri-backend-libcurl
* plug-ins/file-uri/uri-backend-libcurl.c: apply patch from Robby
Workman which fixes the build for this file.
svn path=/trunk/; revision=27116
selection
* plug-ins/script-fu/scripts/add-bevel.scm (script-fu-add-bevel):
Applied modified patch from Barak Itkin that when there is no
selection makes the bevel be performed on the whole layer instead
of the whole image (which was broken in the first place). It also
fixes some bugs with setting the selection when there is no
initial selection.
svn path=/trunk/; revision=27070
* plug-ins/script-fu/scripts/add-bevel.scm (script-fu-add-bevel):
Rename 'select' to 'selection' since that is what it holds.
svn path=/trunk/; revision=27069
machines
* plug-ins/flame/rect.c (render_rectangle): To handle p[0] and
p[1] being NaN, make sure that they are "within bounds" instead of
"not outside bounds".
svn path=/trunk/; revision=27067
2008-09-25 Michael Natterer <mitch@gimp.org>
* plug-ins/print/print-draw-page.c
(print_cairo_surface_from_drawable): free the right array.
svn path=/trunk/; revision=27057
2008-09-25 Sven Neumann <sven@gimp.org>
* plug-ins/file-jpeg/jpeg.[ch]
* plug-ins/file-jpeg/jpeg-save.[ch]
* plug-ins/file-jpeg/jpeg-settings.[ch]: introduced an enum for
the subsampling factor.
svn path=/trunk/; revision=27056
2008-09-25 Sven Neumann <sven@gimp.org>
Bug 553412 – JPEG sampling factors not set to 1x1 on grayscale
images:
* plug-ins/file-jpeg/jpeg-save.c: always set subsampling to 1x1
for grayscale images and indicate this properly in the UI.
svn path=/trunk/; revision=27055
2008-09-24 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/pygimp-image.c: undef GIMP_DISABLE_DEPRECATED
as we need the deprecated gimp_image_free_shadow() here.
* plug-ins/pygimp/pygimp-drawable.c: added
Drawable.free_shadow().
svn path=/trunk/; revision=27043
2008-09-19 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-types.h (struct SFScript): rename
"menu_path" to "menu_label". Having a full path here is just
compat cruft.
* plug-ins/script-fu/script-fu-scripts.c
* plug-ins/script-fu/script-fu-script.[ch]: changed accordingly.
svn path=/trunk/; revision=27016
2008-09-19 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c: also apply the menu
mapping on scripts that use script-fu-menu-register to add
themselves to the menus.
svn path=/trunk/; revision=27015
2008-09-19 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scheme-wrapper.c: move variables to local
scopes, fix some whitespace and indentation, some misc. cleanup,
remove comments about array calling conventions that had lots of
copy and paste errors.
svn path=/trunk/; revision=27014
2008-09-19 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-script.[ch]: add new functions
script_fu_script_get_title() and script_fu_script_reset().
* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
don't set all default values *and* values when parsing the script,
just set the defaults and call script_fu_script_reset() afterwards.
* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
use the new script_fu_script_get_title().
(script_fu_reset): call script_fu_script_reset() and then update
the UI from the current values, instead of doing slightly
different things for each arg type.
svn path=/trunk/; revision=27009
2008-09-19 Sven Neumann <sven@gimp.org>
* plug-ins/help-browser/dialog.c (update_actions): allow to copy
selected text to the clipboard using Ctrl-C or the right-click
menu.
svn path=/trunk/; revision=27006
2008-09-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/edge-dog.c: the plug-in can only run on
layers,
not masks and channels. Added a check for this and bail out with
an error message. Fixes bug #552625.
* plug-ins/common/curve-bend.c: return error messages via the
procedure's return values.
svn path=/trunk/; revision=27000
2008-09-18 Michael Natterer <mitch@gimp.org>
Bug 552785 – Script-fu run errors do not show in UI
* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
fix the code that passes the error message back via the pipe.
svn path=/trunk/; revision=26997
2008-09-18 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-script.[ch]: add new functions
script_fu_script_collect_standard_args(),
script_fu_script_get_command() and
script_fu_script_get_command_from_params().
* plug-ins/script-fu/script-fu-scripts.c: remove the resp. code
here and use above functions instead.
* plug-ins/script-fu/script-fu-interface.c (script_fu_ok): changed
loop over args to only copy all widget content into the script's
values and then call script_fu_script_get_command().
svn path=/trunk/; revision=26993
2008-09-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/lcms.c (run): call gimp_displays_flush() at
the
end of all interactive uses. Fixes bug #552104.
svn path=/trunk/; revision=26980
2008-09-17 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-types.h: add struct SFArg which
keeps all a script argument's type, label, value and default
value.
(struct SFScript): replace separate arrays of type, label etc. by
one array of SFArg. Remove array of GimpParamDef because they are
only needed while registering the temp proc.
* plug-ins/script-fu/Makefile.am
* plug-ins/script-fu/script-fu-script.[ch]: new files implementing
script_fu_script_new(), script_fu_script_free(),
script_fu_script_register_proc() and
script_fu_script_unregister_proc().
* plug-ins/script-fu/script-fu-scripts.c: remove lots of code now
implemented in script-fu-script.c. Changed stuff according to the
introduction of SFArg. Moved variables to local scopes. Most
changes are in script_fu_add_script(), almost every line changed
and it's hopefully more readable now. Lots of cleanup all over the
place.
* plug-ins/script-fu/script-fu-interface.c: changed stuff
according to the introduction of SFArg
svn path=/trunk/; revision=26978
2008-09-17 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/pyconsole.py: removed she-bang as
this
file is not a plug-in. Addresses bug #552601.
svn path=/trunk/; revision=26977
2008-09-17 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-interface.c (script_fu_ok): set
the
PDB error handler to GIMP_PDB_ERROR_HANDLER_PLUGIN while
interpreting the script.
svn path=/trunk/; revision=26967
2008-09-14 Kevin Cozens <kcozens@cvs.gnome.org>
* plug-ins/script-fu/tinyscheme/scheme.c (mk_vector), (opexe_2):
Applied changes from official version of TinyScheme which adds
tests for when mk_vector is out of memory. Can't rely on sc->sink.
svn path=/trunk/; revision=26943
2008-09-13 Sven Neumann <sven@gimp.org>
* plug-ins/common/lcms.c (lcms_image_apply_profile): flush the
displays after closing the undo group. Should fix bug #552104.
svn path=/trunk/; revision=26938
2008-09-12 Kevin Cozens <kcozens@cvs.gnome.org>
* plug-ins/script-fu/tinyscheme/scheme.c
* plug-ins/script-fu/tinyscheme/scheme.h: Applied changes froh
official version of TinyScheme which expose more of the internals.
Part of making it more suitable for Scheme->C->Scheme calling.
See SourceForge bug #1599947.
svn path=/trunk/; revision=26937
2008-09-12 Sven Neumann <sven@gimp.org>
* plug-ins/common/guillotine.c: return the list of created
images.
Only create displays when running in interactive mode.
svn path=/trunk/; revision=26936
2008-09-11 Kevin Cozens <kcozens@cvs.gnome.org>
* plug-ins/script-fu/tinyscheme/CHANGES: Updating to match version
in official version of TinyScheme.
* plug-ins/script-fu/tinyscheme/scheme.c: Applied changes from
official version of TinyScheme which adds entry point for nested
calling. Part of making it more suitable for Scheme->C->Scheme
calling. See SourceForge bug #1599945. Updated usage information
using text from Manual.txt.
svn path=/trunk/; revision=26930
2008-09-11 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scheme-wrapper.[ch]: reordered and renamed
functions to be consistent. Got rid of file-global "register_scripts"
variable. Pass more "scheme *sc" pointers around to reduce usage
or the global variable.
* plug-ins/script-fu/script-fu-eval.c
* plug-ins/script-fu/script-fu-scripts.c
* plug-ins/script-fu/script-fu-server.c
* plug-ins/script-fu/script-fu.c: changed accordingly.
svn path=/trunk/; revision=26928
2008-09-11 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c (script_fu_load_script):
convert the filename to UTF-8 before displaying it in the error
message.
svn path=/trunk/; revision=26923
2008-09-11 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):
use g_set_error() instead of g_set_error_literal() which is only
available in glib 2.18.
svn path=/trunk/; revision=26922
2008-09-11 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/Makefile.am
* plug-ins/script-fu/re/*: removed....
* plug-ins/script-fu/script-fu-regex.[ch]: and replaced with a
few-liner using GRegex. Seems to have some issues that need to be
sorted out.
* plug-ins/script-fu/scheme-wrapper.c: changed accordingly.
svn path=/trunk/; revision=26921
2008-09-10 Michael Natterer <mitch@gimp.org>
Change Script-Fu error handling to properly use the new error
message passing in PDB return values:
* plug-ins/script-fu/script-fu-scripts.[ch]: remove function
script_fu_error_msg().
* plug-ins/script-fu/script-fu-interface.c (script_fu_ok): output
errors of interactive script-fu dialogs directly here with
g_message().
* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):
add GError and return the error message instead of displaying it.
(script_fu_load_script): show the returned error here (and make it
more specific than the former script_fu_error_msg() did).
(script_fu_script_proc): return error messages via the procedure's
return values.
* plug-ins/script-fu/scheme-wrapper.c
(script_fu_marshal_procedure_call): if an error message was
returned from the PDB call, pass it to foreign_error() so it ends
up where it should (consle, text console or error string).
* plug-ins/script-fu/script-fu-console.c
* plug-ins/script-fu/script-fu-text-console.c: set the error
handler to PLUGIN while interpreting scheme, we handle errors
from calling back into the PDB ourselves now.
svn path=/trunk/; revision=26920
2008-09-10 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/tinyscheme/scheme.h: fix prototype (foo() is
not a prototype, use foo(void) instead).
svn path=/trunk/; revision=26919
2008-09-09 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scheme-wrapper.c
(script_fu_marshal_procedure_call): remove debug arrays to map the
values of registered enums to strings. Look up the strings
registered with the type system instead.
svn path=/trunk/; revision=26911
2008-09-09 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scheme-wrapper.c: fix formatting of prototypes.
(script_fu_marshal_procedure_call): move variables to local scopes
where possible. Make this function a bit readable by indenting the
debug code in DEBUG_MARSHAL normally.
svn path=/trunk/; revision=26910
2008-09-08 Sven Neumann <sven@gimp.org>
* plug-ins/file-psd/psd-save.c: applied patch from Dennis Ranke
as
attached to bug #551231. Changes the PSD save plug-in to store
transparency data in the image data section. Also fixes bug
#551232
(saving an indexed image with multiple layers as PSD modifies
the
image).
svn path=/trunk/; revision=26902
* plug-ins/common/file-raw.c (load_dialog): Set the allowed max
values for Width and Height to the size of the image to load
instead of an arbitrary max of 4096
svn path=/trunk/; revision=26892
Paintshop Pro)
* plug-ins/file-psd/psd-load.c (add_layers): Fix integer underflow
and only attempt to read channel data if there is any channel
data.
svn path=/trunk/; revision=26888
* plug-ins/file-psd/psd-load.c (add_layers): Also consider unknown
compression methods unsupported. This gives an error message
instead of a crash for bug #544939. The PSD loader still fails to
read the correct compression method however.
svn path=/trunk/; revision=26886
2008-09-04 Michael Natterer <mitch@gimp.org>
* plug-ins/gfig/gfig-dobject.h
* plug-ins/gfig/gfig-style.c: some more const.
svn path=/trunk/; revision=26860
2008-09-04 Michael Natterer <mitch@gimp.org>
* plug-ins/color-rotate/color-rotate-callbacks.c
* plug-ins/common/filter-pack.c
* plug-ins/common/nova.c
* plug-ins/common/sample-colorize.c: get rid of calls to
gdk_window_get_pointer(), use the coords from the motion event
and use gdk_event_request_motions().
* plug-ins/color-rotate/color-rotate-callbacks.[ch]: some
unrelated cleanup while i was at it.
svn path=/trunk/; revision=26853
2008-09-03 Lars-Peter Clausen <lars@metafoo.de>
* plugin-ins/pygimp/pygimp.h: define PyInt_AsSsize_t as PyInt_AsLong
if the python version is smaller then 2.5.0.
* configure.in: Lower required python version to 2.4.
svn path=/trunk/; revision=26849
2008-09-03 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
* libgimpwidgets/gimpcolorselect.c
* modules/color-selector-water.c
* plug-ins/ifs-compose/ifs-compose.c: instead of using
gdk_window_get_pointer() if GdkEventMotion::is_hint is TRUE,
simply always use the coords from the event and call
gdk_event_request_motions() to ask for more motion events. This is
the recommended way and also works for events from devices other
than the core pointer.
* plug-ins/ifs-compose/ifs-compose.c (design_area_motion): some
code cleanup while i was at it.
svn path=/trunk/; revision=26843
2008-08-29 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/gimpui.defs
* plug-ins/pygimp/gimpui.override:
Removed wrappers for GimpRuler, GimpHRuler, GimpVRuler, as those
are going to be removed from libgimpwidgets.
svn path=/trunk/; revision=26809
2008-08-27 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/pygimp-tile.c
(pr_subscript): Removed some unnecessary g_new/g_free and improved
range checking.
(pr_ass_sub): Improved range checking.
(pygimp_pixel_rgn_new): Clamp pixel region size to the drawable's size.
svn path=/trunk/; revision=26791
2008-08-26 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/gimpmodule.c:
Don't set tp_new for PyGimpTile_Type and PyGimpPixelRgn_Type as both
don't have init functions.
svn path=/trunk/; revision=26785
2008-08-26 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/pygimp-tile.c
(pf_init): Ensure that the python drawables gimp drawable is set.
(pf_dealloc): Don't crash if the pixel fetchers init function failed.
svn path=/trunk/; revision=26784
2008-08-24 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/pygimp-drawable.c (drw_transform_rotate,
drw_transform_flip_simple): Fix method format string, so the
method is actual callable in a script.
svn path=/trunk/; revision=26744
2008-08-23 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.c: return with a proper PDB status type
depending on the result of gtk_print_operation_run(). When run
non-interactively, pass the error message with the return
values.
svn path=/trunk/; revision=26729
2008-08-23 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/coolmetal-logo.scm: applied patch
from LightningIsMyName. Changes the script to not break if
called
on a floating selection (bug #327681).
svn path=/trunk/; revision=26728
2008-08-23 Sven Neumann <sven@gimp.org>
* plug-ins/twain/Makefile.am: dropped use of AM_LDFLAGS
completely
and use target-specific LDFLAGS instead.
svn path=/trunk/; revision=26721
2008-08-21 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c
* plug-ins/script-fu/script-fu-interface.[ch]: changed to
actually
return a meaningful return status when a script-fu procedure is
run.
svn path=/trunk/; revision=26702
2008-08-20 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.c (page_setup): use the new API to set
the
PDB error handler in order to suppress a warning if the
temporary
procedure does not exist (see bug #513291).
svn path=/trunk/; revision=26683
2008-08-20 Sven Neumann <sven@gimp.org>
* plug-ins/file-xjt/xjt.c: pass error messages with the return
values instead of calling g_message().
svn path=/trunk/; revision=26675
2008-08-19 Sven Neumann <sven@gimp.org>
* plug-ins/file-bmp/bmp.[ch]
* plug-ins/file-bmp/bmp-read.c
* plug-ins/file-bmp/bmp-write.c: for most errors, pass the error
message with the return values instead of calling g_message().
svn path=/trunk/; revision=26657
2008-08-19 Sven Neumann <sven@gimp.org>
Complements the fix for bug #344818:
* libgimpbase/gimpbaseenums.[ch]: added new enum
GimpPDBErrorHandler.
* tools/pdbgen/enums.pl: regenerated.
* app/plug-in/gimpplugin.[ch]: added error_handler to
GimpPlugIn.
* app/plug-in/gimpplugin-message.c
(gimp_plug_in_handle_proc_run):
only display an error message for a failed procedure call if the
plug-in's error-handler is set to
GIMP_PDB_ERROR_HANDLER_INTERNAL.
* tools/pdbgen/pdb/plug_in.pdb: added PDB getter and setter for
the plug-in's error-handler.
* app/pdb/plug-in-cmds.c
* app/pdb/internal-procs.c
* libgimp/gimpenums.c.tail
* libgimp/gimpplugin_pdb.[ch]: regenerated.
* plug-ins/common/file-compressor.c
* plug-ins/file-uri/uri.c: set the error-handler to
GIMP_PDB_ERROR_HANDLER_PLUGIN as these plug-ins are forwarding
the
error with their return values.
svn path=/trunk/; revision=26656
2008-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/file-uri/uri.c: pass error messages with the return
values instead of calling g_message().
* plug-ins/file-uri/uri-backend-libcurl.c
* plug-ins/file-uri/uri-backend-gnomevfs.c
* plug-ins/file-uri/uri-backend-gvfs.c
* plug-ins/file-uri/uri-backend-wget.c: set errors in the
G_FILE_ERROR domain and other minor cleanups.
svn path=/trunk/; revision=26655
2008-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-compressor.c: open the temporary file
before forking. This allows us to return an error message if the
file can't be opened. Also changed the code to not use
g_message()
from the child process.
svn path=/trunk/; revision=26653
2008-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-compressor.c: pass some error message
with
the return values instead of calling g_message().
svn path=/trunk/; revision=26652
2008-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-gbr.c
* plug-ins/common/file-gih.c
* plug-ins/common/file-pat.c
* plug-ins/common/file-pix.c
* plug-ins/common/file-sunras.c: for the most common errors,
pass
the error message with the return values instead of calling
g_message().
svn path=/trunk/; revision=26650
2008-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-xbm.c
* plug-ins/common/file-xpm.c
* plug-ins/common/file-xwd.c: for the most common errors, pass
the
error message with the return values instead of calling
g_message().
svn path=/trunk/; revision=26646
2008-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-wmf.c: pass error message with the return
values instead of calling g_message().
svn path=/trunk/; revision=26642
2008-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-pnm.c
* plug-ins/common/file-ps.c
* plug-ins/common/file-psp.c: for the most common errors, pass
the
error message with the return values instead of calling
gimp_message().
svn path=/trunk/; revision=26639
2008-08-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-mng.c
* plug-ins/common/file-pcx.c: for the most common errors,
pass the error message with the return values instead of calling
gimp_message().
* plug-ins/common/file-gif-save.c
* plug-ins/common/file-pdf.c
* plug-ins/common/file-png.c: minor cleanup.
svn path=/trunk/; revision=26638
2008-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-pdf.c: in case of an error, pass the
error
message with the return values.
svn path=/trunk/; revision=26637
2008-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-gif-load.c
* plug-ins/common/file-gif-save.c: for the most common errors,
pass the error message with the return values instead of calling
gimp_message().
* plug-ins/common/file-png.c: unmarked a string for translation.
This error condition can't possibly happen.
* plug-ins/common/file-svg.c: also return an error message when
the thumbnail can't be loaded.
svn path=/trunk/; revision=26636
2008-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-dicom.c: for the most common errors, pass
the error message with the return values instead of calling
gimp_message().
svn path=/trunk/; revision=26634
2008-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-csource.c (save_image): in case of an
error, pass the error message with the return values.
svn path=/trunk/; revision=26633
2008-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-desktop-link.c
* plug-ins/common/file-svg.c: changed to pass error messages
with
the return values instead of calling g_message().
svn path=/trunk/; revision=26626
2008-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/glowing-logo.scm
* plug-ins/script-fu/scripts/neon-logo.scm: changed the "Alpha
to
Logo" parts of these scripts so that the user can specify the
effect size directly instead of as some multiple of the size.
svn path=/trunk/; revision=26623
2008-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/starscape-logo.scm: dropped the
"Alpha to Logo" part of the "Starscape logo script. It had a
similar problem as the Starburst script (see bug #486779).
svn path=/trunk/; revision=26622
2008-08-17 Sven Neumann <sven@gimp.org>
Next step towards fixing bug #344818:
* app/pdb/gimpprocedure.c (gimp_procedure_execute): if the error
has not already been set, construct one from the error message
that is optionally passed with the return values.
* plug-ins/common/file-png.c: changed to pass an error message
with the return values instead of calling g_message() in case of
an error.
svn path=/trunk/; revision=26620
2008-08-17 Sven Neumann <sven@gimp.org>
* plug-ins/file-psd/psd-util.c (psd_set_error): changed to use
g_error_new_literal().
svn path=/trunk/; revision=26617
2008-08-16 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/pygimp-pdb.c (pf_call): also use
gimp_get_pdb_error() here. Easier and safer than looking at the
return values to get the error message.
svn path=/trunk/; revision=26604
2008-08-16 Sven Neumann <sven@gimp.org>
Next step towards fixing bug #344818:
* libgimp/gimp.[ch]: keep the last error status and error
message
in libgimp. Added new functon gimp_pdb_get_error() that allows
to
retrieve it.
* libgimp/gimp.def: updated.
* plug-ins/pygimp/gimpmodule.c (pygimp_vectors_import_from_file)
(pygimp_vectors_import_from_string): use the new function to get
a more useful error message.
svn path=/trunk/; revision=26602
2008-08-16 Sven Neumann <sven@gimp.org>
If a procedure call fails, pass a string describing the error as
the second return value. First step towars fixing bug #344818.
* app/pdb/gimpprocedure.[ch] (gimp_procedure_get_return_values):
added a GError parameter. If it is set, pass the error message
to
the return values.
* app/pdb/gimppdberror.h: added some more error codes.
* app/pdb/gimppdb.c
* app/xcf/xcf.c: pass errors to
gimp_procedure_get_return_values().
* app/plug-in/gimpplugin-message.c
(gimp_plug_in_handle_proc_run):
show a different error message for execution vs. calling errors.
* app/plug-in/gimpplugin-progress.c
(gimp_plug_in_progress_cancel_callback): pass the error
GIMP_PDB_CANCELLED to gimp_procedure_get_return_values().
* app/plug-in/gimppluginmanager-call.[ch]
(gimp_plug_in_manager_call_run): removed the
'destroy_return_vals'
parameter.
* app/plug-in/gimppluginprocedure.c: destroy the return values
here.
* app/plug-in/gimppluginprocframe.c: pass an error to
gimp_procedure_get_return_values().
* tools/pdbgen/app.pl
* tools/pdbgen/pdb/fileops.pdb: generate code that passes the
error to gimp_procedure_get_return_values().
* app/pdb/*-cmds.c: regenerated.
* plug-ins/pygimp/pygimp-pdb.c: extract the error message from
the
return values and pass it to the exception that is thrown.
svn path=/trunk/; revision=26593
2008-08-15 Sven Neumann <sven@gimp.org>
* plug-ins/common/mosaic.c (polygon_add_point): converted a
g_print() call to g_warning() and unmarked the string for
translation.
svn path=/trunk/; revision=26576
2008-08-14 Michael Natterer <mitch@gimp.org>
* plug-ins/help-browser/dialog.c (search_entry_key_press): search
the next match when return or enter is pressed in the search
entry.
svn path=/trunk/; revision=26568
2008-08-14 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/python-console.py: renamed the dialog
class to ConsoleDialog to avoid confusion with
pyconsole.Console.
svn path=/trunk/; revision=26544
2008-08-13 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/python-console.py: instead of calling
gimp-displays-flush twice a second, call it after each command
that is committed. This is similar to what the Script-Fu console
does.
* plug-ins/script-fu/script-fu-console.c: formatting.
svn path=/trunk/; revision=26543
2008-08-13 Sven Neumann <sven@gimp.org>
* plug-ins/help/gimphelplocale.c (gimp_help_locale_parse):
reverted the last change as g_file_query_info() is now also
implemented on Win32.
svn path=/trunk/; revision=26537
2008-08-13 Sven Neumann <sven@gimp.org>
* plug-ins/help/gimphelplocale.c (gimp_help_locale_parse):
continue even if g_file_query_info() fails. We can't show proper
progress information then, but we can still attempt the
download.
svn path=/trunk/; revision=26536