Commit Graph

555 Commits

Author SHA1 Message Date
a1a4a067e4 Bug 735774: Zarro Boogs found for PF_FILENAME - Ambiguous Entry Dialog
FileChooser 'action' and 'buttons' should be consistent
and call set_alternative_button_order to be consistent
on platforms using the alternative button order.
2016-07-28 17:57:47 +02:00
f51acf3bfb Bug 761140: importing gimpui module causes plugin query failure
Remove gimp_ui_init call from gimpui module initialization.

Add gimp_ui_init method to gimpui module and call it from
gimpplugin _run method before running the user code.
2016-07-27 19:11:31 +02:00
2f62555d29 Bug 744878 - Python console should not close on Escape key
The code is set up to work without returning early, use a pass instead.
2016-07-25 00:59:04 +02:00
a9b85bff5f Bug 744878 - Python console should not close on Escape key 2016-07-25 00:57:07 +02:00
dd9b0fc55b Bug 768044 - Fix many typos
This fixes many typos in comments and one in a user-visible string (msgid
"center abscisse" changed to "center abscissa" in affected po files. too).
2016-06-26 00:35:24 +02:00
245bbbc107 Bug 623886 - CancelError exception support for gimpfu.py 2016-06-22 01:22:08 +02:00
8a37c928eb app, plug-ins, libgimp*: clean out all remaining trailing spaces/tabs.
Rather than just discovering them by chance, a simple grep and some
search and replace are much more efficient! :-)
Cleaning only done on C and automake files.
2016-06-02 02:04:26 +02:00
596d5f7435 pygimp: disable deprecation warnings for gimpmodule, drawable, tile
We need to bind deprecated methods and cannot just implement these using
the replacements. So therefore, do not disturb us with deprecation
warnings for these files.
2016-05-01 21:44:04 +02:00
b1117908f4 pygimp: add override for gimp_zoom_preview_get_source 2016-05-01 21:44:04 +02:00
a2d7a04700 pygimp: add overrides for two _convert_surface() methods 2016-05-01 21:44:04 +02:00
f29877dcc4 pygimp: require Pycairo in configure, link gimpui against pycairo 2016-05-01 21:44:04 +02:00
7934e1c8f1 pygimp: make GimpParasite type known to the code generator 2016-05-01 21:44:03 +02:00
fd7c1eff47 pygimp: add type definition for GimpColorManaged 2016-05-01 21:44:03 +02:00
f3583e21c5 pygimp: add GimpColorConfig object 2016-05-01 21:44:03 +02:00
5a1c4e035d pygimp: disable deprecation warnings for gimpui.c
gimpui.c is the language binding which is generated from gimpui.defs.
We need to bind deprecated methods, so please do not disturb us
with deprecation warnings for this file.
2016-05-01 21:44:03 +02:00
57a310ebd6 pygimp: add binding for GimpImageType 2016-05-01 21:44:03 +02:00
fb5d4ac076 pygimp: remove calls to gimp_context_set_transform_recursion
This deprecated function is currently a no-op anyway.
2016-04-29 21:35:43 +02:00
bb4cb5b4c1 pygimp: fix typo 2016-04-29 21:35:43 +02:00
6746e502c2 pygimp: fix implicit enum casts 2016-04-29 21:35:43 +02:00
04ef2c34db pygimp: python-console: ensure initial width of 80 characters 2016-04-29 21:35:43 +02:00
2f1c947abc pygimp: pyconsole: set up a default size of 80x40 characters
A default width of 80 characters makes Python help readable by default.
2016-04-29 21:35:42 +02:00
cd5dfb8642 pygimp: pyconsole: use appropriate Pango function to estimate char width 2016-04-29 21:35:42 +02:00
d9bb8d18f9 pygimp: pyconsole: replace raw_input builtin with modal raw input
We need to run raw_input in modal mode, such that we can return the
text that has been entered as the return value. This makes the use
of "raw_input()" within the pyconsole work as well as makes "help()"
not get stuck (it was blocking on input on stdin).
2016-04-29 21:35:42 +02:00
229285379b pygimp: pyconsole: comment the code a bit
So the code can be understood by mere mortals like me.
2016-04-29 21:35:42 +02:00
a795c1c4ff pygimp: pyconsole: coding style 2016-04-29 21:35:42 +02:00
21a4999230 pygimp: pyconsole: remove unused method 2016-04-29 21:35:42 +02:00
69e5c553d4 Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Add mask_intersect() to pygimp that allows access to
gimp_drawable_mask_intersect() and returns an exception if there is no
overlap.
2016-04-18 21:12:51 +01:00
f10067e560 plug-ins: openraster: Ignore the x,y values of layer groups (bug 760348)
Neither MyPaint or Krita sets these values when saving, and when
loading they have conflicting interpretations such that the only
universally valid value will be zero.
2016-03-23 11:44:41 -07:00
68a9835d56 Bug 756822 - Colors/Desaturate/Luminosity should operate on linear RGB
Add GIMP_DESATURATE_LUMINANCE to enum GimpDesaturateMode and rename
GIMP_DESATURATE_LUMINOSITY to GIMP_DESATURATE_LUMA.

Keep GIMP_DESATURATE_LUMINOSITY as deprecated compat value and add it
to the script-fo and pygimp compat constants.

Change GimpOperationDesaturate to process GIMP_DESATURATE_LUMINANCE
with linear "RGBA float".
2015-10-22 19:50:56 +02:00
5b10339c5f Bug 751584 - parasite_list() methods fail if no parasites found
Correct parasite_list() methods.
2015-09-15 09:34:55 +02:00
0b5c9c41fc Bug 753573 - Enter does not take a default action in Python-Fu dialogs 2015-08-16 20:17:03 +02:00
bc4cf9918f Bug 673501 - Issue with Overlay
GIMP's OVERLAY mode was identical to SOFTLIGHT. This commit fixes the
issue and introduces a NEW_OVERLAY mode and enum value.

- change gimp:overlay-mode to be a real (svg-ish) overlay mode
- when compositing, map OVERLAY to gimp:softlight-mode
- when compisiting, map NEW_OVERLAY to gimp:overlay-mode
- bump the XCF version when NEW_OVERLAY is used
- map OVERLAY to SOFTLIGHT when loading and saving XCF
- map OVERLAY to softlight in all PDB setters
- map OVERLAY to softlight when deserializing a GimpContext
- change all paint mode menus to show an entry for NEW_OVERLAY
  instead of OVERLAY
- change PSP, PSD and OpenRaster to use NEW_OVERLAY

These changes should (redundantly) make sure that no OVERLAY enum
value is used in the core any longer because it gets mapped to
SOFTLIGHT at all entry points, with the downside of introducing a
setter/getter asymmetry when OVERLAY was set in a PDB api.
2015-04-29 13:32:58 -04:00
0fad7bb126 openraster: Implements exporting and loading group layers.
This preserves the layer structure and
brings it in pair to MyPaint development branch
(allowing interchange of .ora files with group layers).

Previous behavior on load was oppening all
sub-layers in a flat-space, with no groups,
and flatten layer groups on export.

The implemented behavior accords to the
openraster spec.
2015-02-26 11:37:34 -03:00
f4a24478bd openraster: filesystem encoding could return None - defaults to utf-8 2015-02-22 12:47:47 -03:00
78df196f12 pygimp: added new drawable.get_data method 2015-02-21 02:32:43 -02:00
d965c7cab2 pygimp: add 'precision' property to Image 2015-02-21 02:32:43 -02:00
542729dd42 Bug 743612: Takes the filesystem encoding in consideration 2015-02-15 14:23:39 -02:00
59417ca4b6 Fix PF_LAYER always being passed as a Layer, even if object is a LayerGroup 2015-02-10 11:57:48 -02:00
1cabefae7c plug-ins: fix python compat names for the GIMP_FILL_* enum values 2014-11-12 22:05:31 +01:00
8a28c72d2b plug-ins: foggify: fix bad fill parameters 2014-11-12 22:04:47 +01:00
d344f5a01f pygimp: fixes garbage left on previous commit 2014-06-20 19:17:09 -03:00
e8550148e7 pygimp: adds gimp_image_export functionality to gimp module
Implements gimp.image_export and gimp.export_dialog
2014-06-20 17:53:29 -03:00
f7e1dd2501 pygimp: Layers retrieved using "parent" have to be GroupLayers
Thanks Seldom Needy for spotting this.
2014-06-19 22:19:52 -03:00
425748dab0 libgimpbase, *: rename GimpFillType values: GIMP_FOO_FILL -> GIMP_FILL_FOO
Change all users accordingly and add compat enum values and compat
constants to script-fu and pygimp.
2014-06-03 01:11:32 +02:00
b1e4bca33a pygimp: move foggify to Filters -> Decor 2014-05-17 02:24:06 +02:00
41c0b093a2 pygimp: move histogram-export to Colors -> Info 2014-05-17 02:07:03 +02:00
07ff7c7d6d Bug 728226: Blending mode of layers in ORA changed upon opening 2014-05-10 18:46:31 +02:00
41f9cd7ba0 Fix stray semicolon causing early return
_wrap_gimp_color_scale_new will always fail because "return -1"
falls outside of the if statement.
2014-05-03 00:24:35 -07:00
a4223766f2 all,libgimp*: move GimpConvolveType and GimpInkBlobType to libgimpbase
and make GimpConvolveType's values sane.
2014-04-29 22:44:58 +02:00
22c222291d libgimpbase,*: clean up enum values in gimpbaseenums.h
GIMP_ADD_foo_MASK -> GIMP_ADD_MASK_foo
GIMP_foo_MODE -> GIMP_BLEND_foo
GIMP_foo_CLONE -> GIMP_CLONE_foo
GIMP_foo -> GIMP_DODGE_BURN_TYPE_foo
GIMP_foo -> GIMP_TRANSFER_foo

Add compat values for the old names and compat code to script-fu
and pygimp.
2014-04-29 20:58:30 +02:00