Commit graph

357 commits

Author SHA1 Message Date
Sven Neumann af64515e53 Bug 556182 – Could you please explain a few strings [I18N]
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-13 20:33:31 +00:00
Sven Neumann 4bdf294b94 undef GIMP_DISABLE_DEPRECATED as we need the deprecated
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-24 11:17:12 +00:00
Sven Neumann 7414d0bc16 plug-ins/pygimp/pygimp-drawable.c added optional interpolation parameters
2008-09-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/pygimp-drawable.c
	* plug-ins/pygimp/pygimp-image.c: added optional interpolation
	parameters to the image.scale() and layer.scale() methods.


svn path=/trunk/; revision=27042
2008-09-24 09:48:44 +00:00
Sven Neumann b282820836 removed she-bang as this file is not a plug-in. Addresses bug #552601.
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 21:07:23 +00:00
Sven Neumann 8ec1d65a4a removed trailing whitespace
svn path=/trunk/; revision=26852
2008-09-04 08:37:32 +00:00
Lars-Peter Clausen eada9412bf Removed trailing whitespace.
2008-09-03  Lars-Peter Clausen  <lars@metafoo.de>

	* plugin-ins/pygimp/pygimp-tile.c: Removed trailing whitespace.


svn path=/trunk/; revision=26850
2008-09-03 21:30:41 +00:00
Lars-Peter Clausen 74b5c92b93 define PyInt_AsSsize_t as PyInt_AsLong if the python version is smaller
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 21:20:12 +00:00
Lars-Peter Clausen aa318cd08b plug-ins/pygimp/gimpui.defs Readded wrapper for the new GimpRuler.
2008-08-29  Lars-Peter Clausen  <lars@metafoo.de>
	
	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Readded wrapper for the new GimpRuler.


svn path=/trunk/; revision=26814
2008-08-29 11:09:35 +00:00
Lars-Peter Clausen ee9d10f70a plug-ins/pygimp/gimpui.defs Removed wrappers for GimpRuler, GimpHRuler,
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-29 09:41:16 +00:00
Lars-Peter Clausen 0d97703b65 plug-ins/pygimp/gimpui.defs Wrapped GimpRuler, GimpHRuler and GimpVRuler
2008-08-28  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Wrapped GimpRuler, GimpHRuler and GimpVRuler widgets.


svn path=/trunk/; revision=26807
2008-08-28 20:49:07 +00:00
Lars-Peter Clausen 3de0fab74a plug-ins/pygimp/gimpui.defs Merged gimpui.{defs,override} from pygimp GSoC
2008-08-28  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Merged gimpui.{defs,override} from pygimp GSoC project.
	Updates gimpui module to have bindings for most widgets functions.


svn path=/trunk/; revision=26806
2008-08-28 19:51:02 +00:00
Lars-Peter Clausen 8ff73b4c2d Removed some unnecessary g_new/g_free and improved range checking.
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-27 15:46:28 +00:00
Lars-Peter Clausen 22d7a536c2 Don't set tp_new for PyGimpTile_Type and PyGimpPixelRgn_Type as both don't
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 22:06:00 +00:00
Lars-Peter Clausen 4d4ef1a8cf Ensure that the python drawables gimp drawable is set. (pf_dealloc): Don't
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-26 21:59:21 +00:00
Lars-Peter Clausen 141e7eb460 Moved execution into global namespace. Fixes import statements inside of
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/plug-ins/python-fu-eval.py: Moved execution into
	global namespace. Fixes import statements inside of evaled code.


svn path=/trunk/; revision=26746
2008-08-24 16:54:38 +00:00
Lars-Peter Clausen 0527aaa3e4 Fix wrong strcmp evaluation.
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Fix wrong strcmp
	evaluation.


svn path=/trunk/; revision=26745
2008-08-24 16:38:23 +00:00
Lars-Peter Clausen c796bca92f Fix method format string, so the method is actual callable in a script.
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-24 16:31:35 +00:00
Sven Neumann e73fc40cf4 don't hardcode the tile size, use gimp.tile_width() instead.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/whirlpinch.py: don't hardcode the 
tile
	size, use gimp.tile_width() instead.


svn path=/trunk/; revision=26632
2008-08-17 20:37:31 +00:00
Sven Neumann 00f704f82f formatting.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/whirlpinch.py: formatting.


svn path=/trunk/; revision=26631
2008-08-17 20:21:29 +00:00
Sven Neumann 52522c3f4e also use gimp_get_pdb_error() here. Easier and safer than looking at the
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 17:29:31 +00:00
Sven Neumann 2fcef8b03e Next step towards fixing bug #344818:
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 17:18:13 +00:00
Sven Neumann f84608d539 If a procedure call fails, pass a string describing the error as the
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-16 13:57:57 +00:00
Sven Neumann d18f24ea0a renamed the dialog class to ConsoleDialog to avoid confusion with
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-14 05:56:58 +00:00
Sven Neumann d87877c257 instead of calling gimp-displays-flush twice a second, call it after each
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 21:54:27 +00:00
Sven Neumann d1a37ae49b fix compiler warnings.
2008-08-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/pygimp-colors.c: fix compiler warnings.


svn path=/trunk/; revision=26538
2008-08-13 21:10:17 +00:00
Sven Neumann 81131c0bb4 Add new PDB data type PDB_COLORARRAY for using arrays of GimpRGB colors as
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-14 14:09:16 +00:00
Manish Singh 874870be13 Allow None to be passed for PDB_DISPLAY.
2008-07-10  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-pdb.c: Allow None to be passed for
        PDB_DISPLAY.

svn path=/trunk/; revision=26107
2008-07-10 18:22:08 +00:00
Sven Neumann 717c352c28 renamed ChangeLog file to avoid that it is still being used accidentally
svn path=/trunk/; revision=26092
2008-07-09 08:05:09 +00:00
Sven Neumann 9799904044 moved ChangeLog entry to the proper file
svn path=/trunk/; revision=26091
2008-07-09 08:04:10 +00:00
Martin Nordholts bfadf77cd3 Remove duplicate entry of gimp.get_foreground().
2008-07-08  Martin Nordholts  <martinn@svn.gnome.org>

	* gimpmodule.c (gimp_methods): Remove duplicate entry of
	gimp.get_foreground().

svn path=/trunk/; revision=26089
2008-07-08 17:08:59 +00:00
Lars-Peter Clausen c103ca3c90 plug-ins/pygimp/pygimp-drawable.c plug-ins/pygimp/pygimp-vectors.c
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-07-03 11:39:52 +00:00
Michael Natterer 335c9a90cb revert last patch because Py_ssize_t is undefined in some (older?)
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 21:01:53 +00:00
Martin Nordholts c3d5eeab80 Applied patch from Ed Swartz that makes use of Py_ssize_t:s instead of
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-06-28 16:38:50 +00:00
Manish Singh 3ff8e10dc6 fix _vectors_id to return a tuple for the ID. Spotted and fixed by Joao.
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-29 22:14:05 +00:00
Sven Neumann 73e717eb34 require glib-gettextize 2.16.
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-05-23 13:36:31 +00:00
Manish Singh fa365e1471 Add PF_OPTION. Fixes bug #523142.
2008-05-14  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: Add PF_OPTION. Fixes bug #523142.

svn path=/trunk/; revision=25664
2008-05-14 09:52:14 +00:00
Sven Neumann 266129b39f strip mnemonics from parameter names before passing them to
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-14 18:07:37 +00:00
Michael Natterer e31bbcff9c plug-ins/pygimp/plug-ins/python-console.py fix new menu paths.
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-10 11:33:02 +00:00
Sven Neumann b464c4f426 plug-ins/pygimp/plug-ins/benchmark-foreground-extract.py
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-04-09 17:16:24 +00:00
Sven Neumann 184bf5a900 plug-ins/pygimp/plug-ins/Makefile.am
2008-04-08  Sven Neumann  <sven@gimp.org>

        * plug-ins/pygimp/plug-ins/Makefile.am

        * plug-ins/pygimp/plug-ins/happy-valley-relief.py: renamed to ...
        * plug-ins/pygimp/plug-ins/python-eval.py: ... this.

        * plug-ins/pygimp/plug-ins/gimpcons.py: renamed to ...
        * plug-ins/pygimp/plug-ins/python-console.py: ... this.

svn path=/trunk/; revision=25411
2008-04-08 09:10:03 +00:00
Manish Singh 668ff27c94 add gimp.exit(), a wrapper around the PDB function gimp-quit.
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-02-19 10:26:06 +00:00
Sven Neumann 34ea5ae14f formatting.
2008-02-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/pyconsole.py: formatting.

svn path=/trunk/; revision=24860
2008-02-11 16:39:45 +00:00
Manish Singh feff2c6b6d no need to use a temporary in tuple translation, and clamp the result.
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-27 05:09:28 +00:00
Joao S. O. Bueno 2ca4dcf882 fix subsequent error (calculated parameters where not used)
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-27 04:58:18 +00:00
Manish Singh dc84799993 fix error reporting.
2008-01-26  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix
        error reporting.

svn path=/trunk/; revision=24714
2008-01-27 03:01:50 +00:00
Manish Singh 60f4aa444c Handle __members__ specially to return the current PDB procedure list, and
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-10 23:39:49 +00:00
Sven Neumann 7c745575d6 fixed spelling of GIMP.
2008-01-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/gimpcons.py: fixed spelling of GIMP.


svn path=/trunk/; revision=24593
2008-01-10 21:27:15 +00:00
Joao S. O. Bueno 95559d7693 Allow Vectors.remove_stroke method to accept VectorStroke objects besides
2008-01-09 Joao S. O. Bueno <gwidion@mpc.com.br>

        * plug-ins/pygimp/pygimp-vectors.c: Allow Vectors.remove_stroke
        method to accept VectorStroke objects besides stroke IDs. Fix
        method names in error strings.

svn path=/trunk/; revision=24583
2008-01-10 00:39:26 +00:00
Joao S. O. Bueno 080cdd66fb fixed incorrect function name in error message for vs_flip
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-07 03:02:58 +00:00
Manish Singh 30e0e4125c new Image.new_layer() method, which is convenience for creating, filling,
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
2008-01-05 23:36:42 +00:00