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-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-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-07-14 Sven Neumann <sven@gimp.org>
Add new PDB data type PDB_COLORARRAY for using arrays of GimpRGB
colors as argument or return value.
* libgimpbase/gimpbaseenums.[ch] (enum GimpPDBArgType): replaced
the unused GIMP_PDB_BOUNDARY with GIMP_PDB_COLORARRAY.
* libgimpbase/gimpprotocol.h: increased GIMP_PROTOCOL_VERSION.
(struct _GPParam): added d_colorarray entry to the union.
* libgimpbase/gimpprotocol.c
* libgimp/gimp.[ch]
* app/pdb/gimp-pdb-compat.c
* app/plug-in/plug-in-params.c
* app/plug-in/gimpplugin-message.c
* tools/pdbgen/pdb.pl: deal with the new data type.
* tools/pdbgen/enums.pl: regenerated.
* plug-ins/pygimp/pygimp-pdb.c
* plug-ins/script-fu/scheme-wrapper.c: handle the new data type.
svn path=/trunk/; revision=26189
2008-07-03 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/pygimp-drawable.c
* plug-ins/pygimp/pygimp-vectors.c
* plug-ins/pygimp/pygimp-display.c
* plug-ins/pygimp/pygimp-image.c: Added checks to ensure that a python
object only is created if its id is valid. Fixes bug #536403.
* plug-ins/pygimp/pygimp-pdb.c
* plug-ins/pygimp/pygimp-tile.c
* plug-ins/pygimp/pygimp-colors.c
* plug-ins/pygimp/pygimp.h: Fix crashing when pygimp is used with
python-2.5 on 64 bit systems. Fixes bug #540629.
svn path=/trunk/; revision=26044
2008-06-28 Michael Natterer <mitch@gimp.org>
* pygimp-pdb.c:
* pygimp-tile.c:
* pygimp-colors.c: revert last patch because Py_ssize_t is
undefined in some (older?) pythons. Needs more investigation.
svn path=/trunk/; revision=26016
2008-06-28 Martin Nordholts <martinn@svn.gnome.org>
* pygimp-pdb.c:
* pygimp-tile.c:
* pygimp-colors.c: Applied patch from Ed Swartz that makes use of
Py_ssize_t:s instead of int:s to better utilize 64-bit
systems. (Bug #540629.)
svn path=/trunk/; revision=26011
2008-05-29 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpshelf.py: fix _vectors_id to return a tuple
for the ID. Spotted and fixed by Joao.
svn path=/trunk/; revision=25865
2008-05-23 Sven Neumann <sven@gimp.org>
* autogen.sh (GLIB_REQUIRED_VERSION): require glib-gettextize 2.16.
* libgimp/libgimp-intl.h
* plug-ins/pygimp/pygimp-intl.h: synced with gi18n-lib.h from glib
2.16. This adds support for the C_() macro.
* plug-ins/script-fu/script-fu-intl.h: just include gi18n.h instead
of duplicating things from this header.
svn path=/trunk/; revision=25775
2008-04-14 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py (_query.make_params): strip
mnemonics
from parameter names before passing them to
gimp.install_procedure().
svn path=/trunk/; revision=25489
2008-04-10 Michael Natterer <mitch@gimp.org>
* plug-ins/pygimp/plug-ins/python-console.py
* plug-ins/script-fu/scripts/ts-helloworld.scm: fix new menu paths.
svn path=/trunk/; revision=25459
2008-04-09 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/benchmark-foreground-extract.py
* plug-ins/pygimp/plug-ins/python-console.py
* plug-ins/pygimp/plug-ins/sphere.py: register in new menu
locations.
svn path=/trunk/; revision=25445
2008-02-19 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c: add gimp.exit(), a wrapper around
the PDB function gimp-quit.
svn path=/trunk/; revision=24918
2008-01-26 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): no
need to use a temporary in tuple translation, and clamp the result.
* plug-ins/pygimp/gimpmodule.c (pygimp_set_background,
pygimp_set_foreground): restore support for passing in 3 args for
color components, for backward compatibility.
svn path=/trunk/; revision=24716
2008-01-26 Joao S. O. Bueno <gwidion@mpc.com.br>
* plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix
subsequent error (calculated parameters where not used)
svn path=/trunk/; revision=24715
2008-01-10 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Handle __members__
specially to return the current PDB procedure list, and pass-through
any attributes that start with "_" without looking them up in the
PDB.
svn path=/trunk/; revision=24595
2008-01-05 Joao S. O. Bueno <gwidion@mpc.com.br>
* plug-ins/pygimp/pygimp-vectors.c: fixed incorrect function name
in error message for vs_flip
svn path=/trunk/; revision=24556
2008-01-05 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-image.c: new Image.new_layer() method,
which is convenience for creating, filling, and attaching a new
layer onto an image. Based on a idea and patch by João S. O. Bueno
in bug #505982.
svn path=/trunk/; revision=24540
2007-12-30 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp-pdb.c
* plug-ins/pygimp/pygimp-colors.c
* plug-ins/pygimp/pygimpcolor-api.h
* plug-ins/pygimp/pygimpcolor.h: Move pygimp_rgb_from_pyobject into
the gimpcolor module, and make it handle translation of sequences
into colors too. Make the GimpParam translation code use it.
* plug-ins/pygimp/gimpcolormodule.c: Initial wrapping of
gimp_bilinear color functions.
* plug-ins/pygimp/gimpenumsmodule.c
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp.h
* plug-ins/pygimp/pygimp-tile.c: Basic wrapping of GimpPixelFetcher.
svn path=/trunk/; revision=24481
2007-12-10 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpmodule.c (pygimp_set_background)
(pygimp_set_foreground): allow the use of CSS color names and
hexadecimal color notation.
svn path=/trunk/; revision=24310
2007-12-08 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py (_run): fixed logic that decides if
a
dialog should be shown or not.
svn path=/trunk/; revision=24300
2007-12-07 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpui.py (ColorSelector.__init__): accept a
string and parse it using gimpcolor.rgb_parse_css().
* plug-ins/pygimp/plug-ins/sphere.py: show off the new feature.
svn path=/trunk/; revision=24285
2007-12-07 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/foggify.py: push/pop a context instead
of manually restoring the background color.
svn path=/trunk/; revision=24283
2007-10-01 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/Makefile.am: moved shadow_bevel.py to
test-scripts so that it isn't installed by default (bug
#482289).
svn path=/trunk/; revision=23711
2007-09-30 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-pdb.c (pygimp_param_from_tuple): drop the
reference we added to the args tuple in the error case.
svn path=/trunk/; revision=23694
2007-09-30 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/plug-ins/foggify.py: fill layer before using it.
Fixes bug #481798, thanks to Jakub Friedl for suggesting fix.
svn path=/trunk/; revision=23693
2007-08-15 Joao S. O. Bueno Calligaris <gwidion@mpc.com.br>
* plug-ins/pygimp/pygimp-drawable.c: avoids function call
with an invalid drawable id
svn path=/trunk/; revision=23272
2007-08-11 Michael Natterer <mitch@gimp.org>
* libgimpbase/gimpbaseenums.[ch]
* libgimpbase/gimpenv.[ch]: changed enum GimpUserDirectory and API
of gimp_user_directory() so that g_get_user_special_dir() can be
used instead as soon as we depend on GLib 2.14.
* tools/pdbgen/enums.pl: regenerated.
* app/widgets/gimpfiledialog.c
* plug-ins/pygimp/gimpmodule.c: changed accordingly.
svn path=/trunk/; revision=23212
2007-05-24 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-display.c (pygimp_display_new): return None
if we're passed an ID of -1, like the other GIMP object constructors.
svn path=/trunk/; revision=22608
2007-05-24 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-display.c: remove the delete method, PyGimp
objects are supposed to be deleted via gimp.delete()
svn path=/trunk/; revision=22607
2007-05-24 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/pygimp-display.c: added an ID attribute and a
delete method to the Gimp.Display object.
* plug-ins/pygimp/gimpshelf.py (_display_id): use the ID
attribute.
* plug-ins/pygimp/gimpfu.py: enabled support for PF_DISPLAY.
svn path=/trunk/; revision=22605
2007-05-10 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpfu.py: remove parameter definition special
casing that was based on menu and plugin types. Instead expect the
script to specify all its parameters in its register call, and hide
the UI elements for the parameters we are already passed in
interactive mode. For compatibilty, this is only turned on when you
specify the "menu" named argument in the register call, or if you
pass
an empty label. This should fix bug #104639.
* plug-ins/pygimp/plug-ins/clothify.py
* plug-ins/pygimp/plug-ins/colorxhtml.py
* plug-ins/pygimp/plug-ins/foggify.py
* plug-ins/pygimp/plug-ins/py-slice.py
* plug-ins/pygimp/plug-ins/shadow_bevel.py
* plug-ins/pygimp/plug-ins/whirlpinch.py: update to register image
* and
drawable parameters explicitly.
svn path=/trunk/; revision=22467
2007-05-06 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py: don't add the radiobuttons into a
GtkFrame.
* plug-ins/pygimp/plug-ins/sphere.py: added a PF_RADIO parameter
as an example and for testing purposes.
svn path=/trunk/; revision=22442
2006-11-28 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-api.h
* plug-ins/pygimp/pygimp.h
* plug-ins/pygimp/gimpmodule.c: export common object types via
_PyGimp_API, and remove the PDBFunction_Type hack. Also define
the common object structures here.
* plug-ins/pygimp/pygimp.h: remove hack for Python < 2.3, since
we require Python 2.3 now.
* plug-ins/pygimp/gimpui.override
* plug-ins/pygimp/gimpui.py: create and use specialized wrappers
for get/set_active methods for GimpIntComboBox and derived types.
Fixes#376102.
2006-11-24 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-vectors.c: bezier_stroke_new_moveto and
bezier_stroke_new_ellipse are now class methods of
VectorsBezierStroke.
* plug-ins/pygimp/gimpmodule.c: vectors import now has better
error handling and cleanup. Also stick VectorsBezierStroke in
the gimp namespace so the class is available for constructing.
2006-11-23 Simon Budig <simon@gimp.org>
* plug-ins/pygimp/gimpmodule.c: follow the function renaming
as well. Why didn't this complain when I compiled earlier?
2006-11-20 Simon Budig <simon@gimp.org>
* app/vectors/gimpstroke.[ch]
* tools/pdbgen/pdb/vectors.pdb
* plug-ins/pygimp/pygimp-vectors.c: Applied patch from
Joao S. O. Bueno Calligaris that adds some missing transformations
to the PDB-API for strokes. Fixes bug #129598.
* app/pdb/internal_procs.c
* app/pdb/vectors_cmds.c
* libgimp/gimpvectors_pdb.[ch]: regenerated.
2006-11-17 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpui.override: override the wrapper for
gimp_int_combo_box_get_active() and let it return the selected
integer instead of the index in the combo (bug #376102).
2006-11-07 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpmodule.c: added context_push() and
context_pop() methods to the gimp module.
* plug-ins/pygimp/plug-ins/sphere.py: use them.
2006-10-28 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/plug-ins/gimpcons.py: can't use gettext.install
here because sys.displayhook fills __builtins__._ too and it'd
be best to maintain that behavior.
2006-10-28 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/plug-ins/gimpcons.py: "Apply" output from the
procedure browser windows now replaces the current line, to maintain
semantics of the old console.
2006-10-27 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-vectors.c: wrap
gimp_vectors_stroke_new_from_points in the form of a
VectorsBezierStroke constructor.
* plug-ins/pygimp/gimpmodule.c: wrap gimp_vectors_new_from_file
and gimp_vectors_new_from_string.
* plug-ins/pygimp/pygimp-pdb.c: PDB_VECTORS should be translated
into Vectors objects.
2006-10-24 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-vectors.c: remove_stroke is now a Vectors
object method. Also implement, get_ID, get_vectors_ID, and get_points
for VectorsStroke.
2006-10-24 Simon Budig <simon@gimp.org>
* app/vectors/Makefile.am
* app/vectors/vectors-enums.h
* app/vectors/vectors-types.h: added new file for the vectors enums,
adjusted Makefile.am for the generation of vectors-enums.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/pdb/vectors.pdb: Added implementation for
gimp-vectors-stroke-get-points which returns the control points for
the stroke.
Renamed gimp-vectors-stroke-remove to gimp-vectors-remove-stroke.
ATTENTION: this breaks scripts using this function, a simple name
change is enough to make it work again.
Also please note that yosh reordered the return values of
gimp-vectors-stroke-interpolate, so your scripts need adjustment
there as well.
* tools/pdbgen/pdb/paths.pdb: deprecate gimp-path-get-points. Yay!
* libgimp/gimp.def: added new symbol
* plug-ins/pygimp/pygimp-vectors.c: reflect name change of
gimp_vectors_remove_stroke ().
* app/vectors/vectors-enums.c
* app/pdb/internal_procs.c
* app/pdb/paths_cmds.c
* app/pdb/vectors_cmds.c
* devel-docs/libgimp/tmpl/gimpvectors.sgml
* libgimp/gimpenums.c.tail
* libgimp/gimpenums.h
* libgimp/gimppaths_pdb.[ch]
* libgimp/gimpvectors_pdb.[ch]
* tools/pdbgen/enums.pl: regenerated.
2006-10-21 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/plug-ins/pyconsole.py: Windows is dumb, special
case out gimp invocation just like we did for gtkcons.py
2006-10-20 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpui.defs: clone methods can't be marked as
constructors.
* plug-ins/pygimp/Makefile.am
* plug-ins/pygimp/procbrowser.c: Remove one-off GimpProcBrowserDialog
wrapper. Nobody but the console should've been using it anyway.
* plug-ins/pygimp/gimpui.override: overrides for GimpEnumLabel,
GimpIntComboBox, and GimpProcBrowserDialog constructors, as well
as gimp_browser_add_search_types.
* plug-ins/pygimp/plug-ins/pyconsole.py: New console widget,
taken from GGAP (http://ggap.sourceforge.net)
* plug-ins/pygimp/plug-ins/gtkcons.py: removed.
* plug-ins/gimpcons.py: use new console widget, and the
GimpProcBrowserDialog binding directly. Still a little rough in
places.
* plug-ins/pygimp/plug-ins/pdbbrowse.py: removed, it's redundant.
* plug-ins/pygimp/plug-ins/Makefile.am: reflect above changes.
2006-10-20 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/procbrowser.c: use pygimp_init_pygobject here too.
Report and patch from Eric Lamarque (fixes bug #363516).
2006-10-04 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpui.defs
* plug-ins/pygimp/gimpui.override: new style constructors for
GimpColorButton and GimpColorScale.
2006-10-03 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-drawable.c: a FALSE return from
gimp_drawable_mask_bounds doesn't mean failure. Restore old
behavior. Fixes bug #357223.