Commit Graph

399 Commits

Author SHA1 Message Date
Michael Natterer 16491ce8a8 pygimp: completely undeprecate pygimp-image.c
Somebody really needs to take care of deprecating all that
stuff in pygimp itself, and add API for the new functions.
2010-09-16 20:58:21 +02:00
Michael Natterer 98d8d686e8 pygimp: don't use gimp_image,layer_scale_full() 2010-09-16 20:53:15 +02:00
Michael Natterer 4264afbb0e pygimp: port to gimp_item_to_selection() 2010-09-07 00:35:28 +02:00
Sven Neumann bab75db54e python: port plug-ins to Image.insert_layer() 2010-09-06 23:58:10 +02:00
Sven Neumann 378a465caa python: add Image.insert_layer() and Image.insert_channel() 2010-09-06 23:43:22 +02:00
Sven Neumann 48f6219585 python: use gimp_image_insert_layer() instead of add_layer() 2010-09-06 23:31:04 +02:00
Martin Nordholts 529559407e plug-ins/pygimp: Fix copy-paste error in gimpthumb.override 2010-09-03 09:32:25 +02:00
Martin Nordholts b3189cdbf6 plug-ins/pygimp: Workaround for missing header
Add workaround for missing header in gimpui.c and gimpthumb.c to avoid
compile warnings about "no previous prototype".
2010-09-03 08:28:28 +02:00
Martin Nordholts 1d79b045e8 plug-ins/pygimp: Fix setitem function signatures
Use 'Py_ssize_t' not 'int' so we compile without warnings on 64-bit
too.
2010-09-03 08:20:00 +02:00
Martin Nordholts d40984f505 plug-ins/pygimp: Cast PyMappingMethods.mp_length to lenfunc
From Pyton 2.5 - which is the minimum Python version we require - the
type of the mp_length member in PyMappingMethods is lenfunc, not
inquiry. Fix this to get rid of "initialization from incompatible
pointer type" warnings.
2010-09-03 08:12:05 +02:00
David Gowers cebbde5da9 plugins/pygimp: use (PF|PDB)_ITEM instead of _REGION so pygimp works again.
Also update vectors and drawable code to use the new GimpItem API.
2010-07-16 16:40:03 +02:00
Michael Natterer aa5833fb9f pygimp: remove bogus $(srcdir) from a Makefile rule
The rules does (cd $srcdir && ...) anyway, so using $srcdir in that
subshell results in the wrong relative path. Patch by Omari Stephens
and Mikael Magnusson.
2010-06-27 00:38:29 +02:00
Jon Nordby da6ab495b9 plug-ins: OpenRaster visibility layer attribute 2010-05-06 17:55:12 +02:00
Jon Nordby c16af01606 plug-ins: OpenRaster, fix wrong layer positions
Don't store layer offsets in the PNG, or honor them on loading. The layer
position is given by the OpenRaster layer attributes alone. This caused a bug
where the offsets were applied twice, positioning the layer wrong.
2010-05-06 17:55:12 +02:00
Michael Natterer d3ab91b7d2 Revert "Adds a layer-group aware layers property to Layer objects"
This reverts commit 2525e30429.
2010-05-01 14:36:04 +02:00
João S. O. Bueno 2525e30429 Adds a layer-group aware layers property to Layer objects 2010-04-27 23:34:44 -03:00
Nils Philippsen 8885cd3b4f remove obsolete tooltips object creation
amends:
commit a78bffbfb9
Author: Jerry Baker <jbaker@gimpthoughts.com>
Date:   Mon Apr 12 14:40:47 2010 -0400

    Use gtk.Tooltip() instead of gtk.Tooltips()
2010-04-15 16:38:21 +02:00
Jerry Baker a78bffbfb9 Use gtk.Tooltip() instead of gtk.Tooltips() 2010-04-13 20:27:29 +02:00
Jon Nordby 614714d980 plug-ins: Optimize OpenRaster PNG saving
Sets lower compression and disables interlacing.
On a 5 layer image of 4500x6000px this gives an order of magnitude better
save-times, with 50% increase in file size.
2010-03-13 12:23:30 +01:00
Jerry Baker 1eb50fec2e Bug 611928 - Add 'active_vectors' to pygimp
Add 'img_get_active_vectors' and 'img_set_active_vectors' to pygimp.
2010-03-07 12:34:52 +01:00
Jon Nordby bd8af017f5 Bug 605366 - OpenRaster support
Add basic OpenRaster support. At the very least, this allows
multi-layered .ora files to be shared between MyPaint and GIMP.
2010-01-24 09:01:33 +01:00
Omari Stephens 11f094f565 plug-ins/pygimp: Minor style cleanup for readability
Use all the same quotation marks (", not '), switch from string slicing to
.startswith(), and fix and indentation mishap.
2009-12-29 12:52:49 +01:00
Sven Neumann 474b5fdff3 Bug 601891 - gimp_image_get_selection returns None
The code used to make the assumption that the selection mask was
a layer. Actually it is a channel and changing the code accordingly
fixes the reported problem.
2009-11-14 16:50:42 +01:00
Michael Natterer 018e8b0d29 Build with GSEAL_ENABLE and #undef it where accessors are missing 2009-10-17 20:31:57 +02:00
Michael Natterer 2a7cb3915f Use gtk_widget_get_window() instead of widget->window 2009-10-09 21:19:09 +02:00
Manish Singh 2182dec09b Bug 594651 - layer.scale() raises RuntimeError
Add "interpolation" to kwlist for pygimp layer.scale()
2009-09-11 12:55:25 -07:00
Michael Schumacher f19e60636a Bug 551444 – With Python 2.5, module extension should be .pyd
libtool >= 2.2 has a new command line option -shrext. Use this to set
the python modules' file name extension to .pyd
2009-08-11 00:08:38 +02:00
Martin Nordholts 34b5e99905 Rename configure.in to configure.ac
Rename configure.in to configure.ac and update references to the
file. Configure.ac is the recomended and promoted name in the autoconf
manual.
2009-05-17 14:49:04 +02:00
Sven Neumann 259f3bd2ba Fixed procedure name and internationalisation.
Use a spin-button for the font-size.
2009-05-11 16:26:12 +02:00
Sven Neumann 61c065d244 Use the proper API to locate the user gimp directory 2009-05-11 16:26:12 +02:00
João S. O. Bueno 9779233d87 New script for creating pipe brushes from typed text 2009-05-07 13:30:03 -03:00
Sven Neumann 74424325ab Fix default values for Image.new_layer() methods
Use image height instead of width as the default height of the
newly created layer (bug #579400).
2009-04-21 10:24:52 +02:00
Sven Neumann 849a18b08c Bug 574149 – Can't get name/filename of files loaded from URI
2009-03-04  Sven Neumann  <sven@gimp.org>

	Bug 574149 – Can't get name/filename of files loaded from URI

	* tools/pdbgen/pdb/image.pdb: added new procedure 
gimp-image-get-uri.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.

	* plug-ins/pygimp/pygimp-image.c: wrap the new procedure into an
	Image attribute.


svn path=/trunk/; revision=28103
2009-03-04 19:35:18 +00:00
Sven Neumann 1d0aa536cb warn if a script uses the decprecated way of registering its menu
2009-02-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py (register): warn if a script uses the
	decprecated way of registering its menu location.


svn path=/trunk/; revision=28067
2009-02-23 10:03:17 +00:00
Martin Nordholts 4d7a6b10d1 Added .gitignore files generated with git svn create-ignore.
svn path=/trunk/; revision=27972
2009-01-31 11:37:44 +00:00
Michael Natterer 4ea1437646 plug-ins/common/*.c plug-ins/color-rotate/color-rotate.c
2009-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c
	* plug-ins/color-rotate/color-rotate.c
	* plug-ins/file-bmp/bmp.c
	* plug-ins/file-faxg3/faxg3.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-fli/fli-gimp.c
	* plug-ins/file-ico/ico.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-psd/psd-save.c
	* plug-ins/file-psd/psd.c
	* plug-ins/file-sgi/sgi.c
	* plug-ins/file-uri/uri.c
	* plug-ins/file-xjt/xjt.c
	* plug-ins/flame/flame.c
	* plug-ins/fractal-explorer/fractal-explorer.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gimpressionist/gimp.c
	* plug-ins/gradient-flare/gradient-flare.c
	* plug-ins/help-browser/help-browser.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/lighting/lighting-main.c
	* plug-ins/map-object/map-object-main.c
	* plug-ins/maze/maze.c
	* plug-ins/metadata/metadata.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/print.c
	* plug-ins/pygimp/gimpfu.py
	* plug-ins/script-fu/script-fu-script.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/selection-to-path/selection-to-path.c
	* plug-ins/twain/twain.c
	* plug-ins/win-snap/winsnap.c: document the "run-mode" parameter
	as we document enums for core procedures.


svn path=/trunk/; revision=27922
2009-01-19 20:11:36 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
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 22:28:01 +00:00
Sven Neumann 5700bd6003 Bug 565138 – python-fu-foggify does not check if image is in rgb mode
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-21 15:33:07 +00:00
Sven Neumann 930772a763 Bug 562459 – PF_PALETTE: 'TypeError' when used in a plugin that is
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 20:49:14 +00:00
Sven Neumann 3cbb3dc994 Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not change
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 11:57:07 +00:00
Lars-Peter Clausen 080d1a42f2 Let SpinnerEntry return a float instead of trying to convert the textvalue to an
int.

svn path=/trunk/; revision=27728
2008-11-27 11:33:02 +00:00
Sven Neumann 44c92ad267 Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not change
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-27 10:25:10 +00:00
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