2007-12-11 Michael Natterer <mitch@gimp.org>
* app/pdb/Makefile.am
* app/pdb/gimppdb-utils.[ch]: new utility functions which look up
brushes, patterns etc. and set appropriate error messages if the
objects are not found.
* tools/pdbgen/pdb/brush.pdb
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/buffer.pdb
* tools/pdbgen/pdb/context.pdb
* tools/pdbgen/pdb/convert.pdb
* tools/pdbgen/pdb/gradient.pdb
* tools/pdbgen/pdb/gradients.pdb
* tools/pdbgen/pdb/paint_tools.pdb
* tools/pdbgen/pdb/palette.pdb
* tools/pdbgen/pdb/palettes.pdb
* tools/pdbgen/pdb/pattern.pdb
* tools/pdbgen/pdb/patterns.pdb: use them here. Also set non_empty
to TRUE for all brush, pattern etc. names.
* app/pdb/brush_cmds.c
* app/pdb/brushes_cmds.c
* app/pdb/buffer_cmds.c
* app/pdb/context_cmds.c
* app/pdb/convert_cmds.c
* app/pdb/gradient_cmds.c
* app/pdb/gradients_cmds.c
* app/pdb/paint_tools_cmds.c
* app/pdb/palette_cmds.c
* app/pdb/palettes_cmds.c
* app/pdb/pattern_cmds.c
* app/pdb/patterns_cmds.c: regenerated.
svn path=/trunk/; revision=24318
2007-12-07 Michael Natterer <mitch@gimp.org>
* app/core/gimpselection.[ch]: added GErrors to
gimp_selection_extract() and gimp_selection_float().
* app/core/gimp-edit.c
* app/tools/gimpeditselectiontool.c
* app/actions/select-commands.c: handle the returned error.
* app/core/gimpdrawable-transform.c: pass NULL errors since this
file knows what it does and won't get errors.
* tools/pdbgen/pdb/selection.pdb: pass the error.
* app/pdb/selection_cmds.c: regenerated.
svn path=/trunk/; revision=24286
2007-12-06 Michael Natterer <mitch@gimp.org>
* app/paint/gimppaintcore-stroke.[ch]: added GError arguments and
fixed all functions to abort when the first call to
gimp_paint_core_start() fails (it won't succeed either for the
next path or whatever segemts).
* app/core/gimpitem.[ch]: added GError to gimp_item_stroke()
* app/core/gimpselection.c
* app/core/gimpchannel.c
* app/vectors/gimpvectors.c: don't gimp_message() in
GimpItem::stroke() but set the error.
* app/dialogs/stroke-dialog.c
* app/actions/vectors-commands.c
* app/actions/select-commands.c: handle the returned errors.
* tools/pdbgen/pdb/edit.pdb
* tools/pdbgen/pdb/paths.pdb
* tools/pdbgen/pdb/paint_tools.pdb: pass the error to the stroke
functions.
* app/pdb/paint_tools_cmds.c
* app/pdb/edit_cmds.c
* app/pdb/paths_cmds.c: regenerated.
svn path=/trunk/; revision=24273
2007-12-06 Michael Natterer <mitch@gimp.org>
Move some gimp_message() calls where they belong:
* app/core/gimplayer-floating-sel.[ch]: removed unreachable
gimp_message() in floating_sel_anchor() and added GError parameter
to floating_sel_to_layer().
* app/core/gimplayer.c
* app/core/gimpimage-quick-mask.c
* app/actions/layers-commands.c: pass NULL or an error as
appropriate and show the error message.
* tools/pdbgen/pdb/floating_sel.pdb: set the error when the passed
layer was no floating selection.
* app/pdb/floating_sel_cmds.c: regenerated.
svn path=/trunk/; revision=24272
2007-12-05 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/fileops.pdb: pass the error also to
file_utils_filename_to_uri().
* app/pdb/fileops_cmds.c: regenerated.
svn path=/trunk/; revision=24268
2007-12-05 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/image.pdb (set_resolution): set the error
instead of using gimp_message().
* app/pdb/image_cmds.c: regenerated.
svn path=/trunk/; revision=24266
2007-12-05 Michael Natterer <mitch@gimp.org>
* app/pdb/gimppdb-query.[ch]: added GError arguments and reduce
number of labels: to one by simply checking if the regex exists
before unreffing it.
* tools/pdbgen/pdb/procedural_db.pdb: pass the error to the query
functions.
* app/pdb/procedural_db_cmds.c: regenerated.
svn path=/trunk/; revision=24265
* tools/pdbgen/pdb/gradient.pdb
* tools/pdbgen/pdb/palette.pdb
* tools/pdbgen/pdb/brush.pdb: use the new error arg instead
of creating a GError and handling it internally.
* app/pdb/palette_cmds.c
* app/pdb/gradient_cmds.c
* app/pdb/brush_cmds.c: regenerated.
svn path=/trunk/; revision=24262
2007-12-03 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/fileops.pdb: pass the new error down to all
file functions which take GError arguments.
* app/pdb/fileops_cmds.c: regenerated.
svn path=/trunk/; revision=24258
2007-11-05 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/image.pdb: create a libgimp C wrapper for
gimp-image-get-vectors-by-tattoo; this function was accidentally
forgotten in the 2.4 libgimp API.
* app/pdb/image_cmds.c
* libgimp/gimpimage_pdb.[ch]: regenerated.
svn path=/trunk/; revision=24066
2007-11-05 Michael Natterer <mitch@gimp.org>
* app/core/gimpcurve.[ch]: don't recalculate the curve if the data
object is frozen. Recalculate on thaw instead. Made
gimp_curve_calculate() private and emit some GimpData::dirty
signals where appropriate.
* app/tools/gimpcurvestool.c
* app/widgets/gimpcurveview.c
* tools/pdbgen/pdb/color.pdb: changed accodingly (connect to "dirty"
instead of "notify" and added some freeze/thaw where approproate).
* app/pdb/color_cmds.c: regenerated.
svn path=/trunk/; revision=24063
2007-11-02 Michael Natterer <mitch@gimp.org>
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpcurve-save.[ch]
* app/core/gimpcurve-load.[ch]
* app/core/gimpcurve.[ch]: new GimpData subclass which keeps a
curve as known from the curves tool. Pretty much unfinished, but
can do everything that used to be done by base/curves.c and more.
* app/base/curves.[ch]: stripped down to plain arrays of
uchar (the actual curve) and the LUT setup function. All the rest
is done by GimpCurve now.
* app/tools/gimpcurvestool.[ch]: use an array of GimpCurves
instead of the old Curves cruft. Use Curves only for the last step
of creating the LUT. Pretty much unfinished migration here too.
* tools/pdbgen/pdb/color.pdb: use a GimpCurve here too.
* app/pdb/color_cmds.c: regenerated.
svn path=/trunk/; revision=24041
2007-10-28 Sven Neumann <sven@gimp.org>
* app/pdb/gimppdb.c (gimp_pdb_execute_procedure_by_name): also
call va_end() in the error cases.
svn path=/trunk/; revision=23982
2007-10-16 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/gradient.pdb: increased the arbitrary upper
limit on the number of segments in
gimp-gradient-segment-range-split-uniform. The old value used to
create errors in the "Palette to Gradient" script for most of
our
palettes.
* app/pdb/gradient_cmds.c: regenerated.
svn path=/trunk/; revision=23838
2007-09-30 Sven Neumann <sven@gimp.org>
* app/core/gimp-utils.c (gimp_get_temp_filename): handle a NULL
extension and create a filename without file extension.
* tools/pdbgen/pdb/fileops.pdb
* app/pdb/fileops_cmds.c: allow NULL to be passed as extension
parameter to gimp_temp_name().
svn path=/trunk/; revision=23697
2007-09-25 Sven Neumann <sven@gimp.org>
* plug-ins/common/decompose.c: reverted "fix" for bug #477008.
* tools/pdbgen/pdb/display.pdb
* app/pdb/display_cmds.c: flush the image before creating a new
display for it. Fixes bug #477008 also for other plug-ins like
Screenshot.
svn path=/trunk/; revision=23650
2007-09-24 Simon Budig <simon@gimp.org>
* app/pdb/vectors_cmds.c: fixed error on how many points get
initialized.
Probably fixes bug #479790.
svn path=/trunk/; revision=23644
2007-09-20 Sven Neumann <sven@gimp.org>
* app/core/gimpimage.[ch]: added a load_proc member to GimpImage
and getters and setters for it.
* app/file/file-open.c (file_open_image): set the load
procedure,
but only if it hasn't been set already. Use the MIME type from
the
load procedure that is set on the image.
* tools/pdbgen/pdb/fileops.pdb (file_load_invoker): set the load
procedure. This causes it to be set when the URI plug-in calls
gimp-file-load to load the image.
* app/pdb/fileops_cmds.c: regenerated.
* app/widgets/gimpimagepropview.c
(gimp_image_prop_view_label_set_filetype): use the MIME type
from
the load procedure, in case that no save procedure is set.
svn path=/trunk/; revision=23597
2007-09-18 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/fileops.pdb: canonicalize the name of the
thumbnail loader procedure too. Fixes bug #477917.
* app/pdb/fileops_cmds.c: regenerated.
svn path=/trunk/; revision=23578
2007-08-24 Raphael Quinet <raphael@gimp.org>
* tools/pdbgen/pdb/selection.pdb: fixed incorrect description of
gimp-selection-is-empty, reported by pk. This function returns
TRUE when the selection is empty, but the description stated the
opposite.
* app/pdb/selection_cmds.c
* libgimp/gimpselection_pdb.c: regenerated.
svn path=/trunk/; revision=23368
2007-08-02 Michael Natterer <mitch@gimp.org>
Make sure image thumbnails that are saved or given to plugins are
constructed synchronously. Fixes bug #461703.
* app/core/gimpprojection.c (gimp_projection_pickable_flush):
invalidate the preview after constructing the projection.
* app/core/gimpimagefile.c (gimp_imagefile_save_thumb)
* tools/pdbgen/pdb/image.pdb (image_thumbnail): call
gimp_pickable_flush() on the projection so is constructed now, not
later.
* app/pdb/image_cmds.c: regenerated.
svn path=/trunk/; revision=23105
2007-07-25 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/progress.pdb: added new procedure gimp-progress-end.
* app/pdb/progress_cmds.c
* app/pdb/internal_procs.c
* libgimp/gimpprogress_pdb.[ch]: regenerated.
* plug-ins/print/print.[ch]
* plug-ins/print/print-settings.[ch]: end the progress and save
the settings from the "end-print" handler. The plug-in then
appears finished but keeps running in the background until it has
finished the print operation.
svn path=/trunk/; revision=22994
2007-07-05 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb.pl (arg_parse): allow the use of constants when
specifying limits for a PDB type.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/layer.pdb: use GIMP_MAX_IMAGE_SIZE as limit for
image and drawable sizes.
* tools/pdbgen/pdb/selection_tools.pdb: added missing include.
* app/pdb/channel_cmds.c
* app/pdb/image_cmds.c
* app/pdb/layer_cmds.c
* app/pdb/selection_tools_cmds.c: regenerated.
svn path=/trunk/; revision=22870
2007-06-25 Sven Neumann <sven@gimp.org>
* configure.in: removed extra check for gthread and fold it into
the GLIB and GTK checks.
* */Makefile.am: changed accordingly.
* app/main.c (main): always call g_thread_init().
svn path=/trunk/; revision=22832
2007-06-11 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-preview.c: don't disable image previews
when
layer previews are disabled. We do not any longer create the
image
preview from the layer previews.
* app/core/gimpimagefile.c
* app/widgets/gimpthumbbox.c
* tools/pdbgen/pdb/image.pdb: thumbnail rendering is not any
longer disabled if layer previews are turned off.
* app/config/gimprc-blurbs.h (THUMBNAIL_SIZE_BLURB): removed
note
that has become invalid by the change above.
* app/core/gimpitem-preview.c: cosmetics.
* app/pdb/image_cmds.c: regenerated.
svn path=/trunk/; revision=22756
2007-05-21 Sven Neumann <sven@gimp.org>
* app/pdb/gimpprocedure.c (gimp_procedure_validate_args): pass the
GimpProgress to gimp_message().
* plug-ins/common/bumpmap.c: reduced number of progress updates.
svn path=/trunk/; revision=22551
2007-05-05 Simon Budig <simon@gimp.org>
* tools/pdbgen/pdb/edit.pdb: make gimp-edit-paste-as-new not fail
at an empty clipboard, but return -1 as image id.
* app/pdb/edit_cmds.c
* libgimp/gimpedit_pdb.c: regenerated.
* plug-ins/script-fu/scripts/paste-as-brush.scm
* plug-ins/script-fu/scripts/paste-as-pattern.scm: Changed
accordingly, fixes bug #357059.
* modules/controller_linux_input.c: changed some axis names to
make more sense.
svn path=/trunk/; revision=22429
2007-05-05 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/app.pl (generate_pspec): use $flags and not a
literal GIMP_PARAM_READWRITE for the image paramspec's flags.
* app/pdb/image_cmds.c: regenerated.
svn path=/trunk/; revision=22425
2007-04-26 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/display.pdb (diplay_is_valid)
* tools/pdbgen/pdb/drawable.pdb (drawable_is_valid)
* tools/pdbgen/pdb/image.pdb (image_is_valid)
* tools/pdbgen/pdb/vectors.pdb (vectors_is_valid): it's the
argument flag "no_success" which turns off validation, not
"no_validate" (how obvious). Also fixed drawable and vectors
procedures to check for !gimp_item_is_removed() instead of
gimp_item_is_attached() (a newly created item is unattached
but valid).
* app/pdb/display_cmds.c
* app/pdb/drawable_cmds.c
* app/pdb/image_cmds.c
* app/pdb/vectors_cmds.c: regenerated.
svn path=/trunk/; revision=22349