Commit Graph

47760 Commits

Author SHA1 Message Date
Jehan 1e47c8916a .gitlab: search common git ancestor with `mr-origin` remote.
It looks like origin is the same as mr-origin when the contributor
pushes to one's branch. But when a reviewer rebases through the Gitlab
"Rebase" button on web GUI, I got a fatal error:

> fatal: ambiguous argument 'origin/asalle/use-dynamics-flag': unknown
  revision or path not in the working tree.

Possibly `origin` is then the remote of the person who rebased (it would
be weird, yet it's a fact the branch is not found). Let's go with this
assumption.
2022-01-19 22:22:40 +01:00
Asa 9385a6405a .gitlab-ci.yml: add clang-format rules and pipeline
Fixes #950

`.gitlab/search-common-ancestor.sh`'s original authors are
Philip Withnall and Frederic Martinsons.
(Jehan/reviewer's note: script further improved by Asalle)
2022-01-19 20:44:45 +00:00
Hugo Carvalho 26ed0d63cd Update Portuguese translation 2022-01-19 16:10:01 +00:00
Jehan df06eebe8b Coding style: update.
- Add recommendations on whether to break MRs into 1 or more commits.
- Add style for one-line struct initialization.
- Protect some texts in backticks' markdown syntax.
2022-01-19 16:36:59 +01:00
Nikc 94c7f80282 Issue #4009: enables option to capture cursor in screenshot (Windows) 2022-01-19 01:28:47 +00:00
Yuri Chornoivan 5c4c5c5b5e Update Ukrainian translation 2022-01-18 22:56:41 +00:00
Jacob Boerema e51ca66ee5 plug-ins: fix #7524 DICOM File is broken
This is the same issue as with IM000001.dcm mentioned in issue #313.

There are two problems: incorrect endian conversion for 16 bits per pixel,
and not handling photometric interpretation "MONOCHROME1", which means
minimum value is white instead of black.

The endian conversion was fixed as suggested in issue #313.
For "MONOCHROME1" we added a variable bw_inverted and we invert the pixel
value if that variable is true.
2022-01-18 16:30:28 -05:00
Jacob Boerema 059599fc78 plug-ins: fix #6871 indexed tga file cannot be saved
Exporting an image to TGA fails with a crash when it's an indexed image
with alpha channel. We were not taking into account that even though
the output is 1 byte per pixel, the input should allocate memory for
2 bytes per pixel (1 color index and 1 alpha channel).
2022-01-18 15:00:22 -05:00
Rodrigo Lledó 1c8aad4f68 Update Spanish translation 2022-01-16 22:31:26 +00:00
Matej Urbančič 0986fec1fb Update Slovenian translation 2022-01-16 21:30:49 +00:00
Matej Urbančič 3f8934b33a Update Slovenian translation 2022-01-16 21:29:47 +00:00
Hugo Carvalho 794b27ef62 Update Portuguese translation 2022-01-13 11:57:03 +00:00
Rodrigo Lledó 2fe6b11158 Update Spanish translation 2022-01-11 18:17:49 +00:00
Marco Ciampa 3f6bf3cee9 Updated Italian translation 2022-01-11 10:58:43 +01:00
Marco Ciampa c27e972778 Updated Italian translation 2022-01-11 08:54:23 +01:00
Jehan 407472f091 build: fix windows-installer-langs unit test.
Also improving a bit the download script by specifying the .isl or .islu
file extension. It's nicer than trying to download randomly, and also it
allows to better compare the list of downloaded files with the list in
gimp3264.iss script.
2022-01-10 23:58:00 +01:00
Jehan 9ba44aab2a build: Improve BOM-adding on InnoSetup files.
My previous command was also adding a linefeed just after the BOM. While
I'm not sure it would really break anything for processing these, it's
anyway much more correct to only add the 3 BOM bytes. So here is the
improved command.
2022-01-10 21:27:12 +01:00
Jehan 5872d8dd45 build: factorize downloading code for InnoSetup languages.
Also some language files are supposed to be UTF-8 yet they are missing
the BOM markup (only method to recognize them for InnoSetup). This is
the case for Chinese Traditional. See issue #7676.
Make sure that this lang file has a BOM.
2022-01-10 21:09:23 +01:00
Yuri Chornoivan 3c0e21e4bf Update Ukrainian translation 2022-01-09 12:20:37 +00:00
Anders Jonsson 53d6d460b7 Update Swedish translation 2022-01-09 01:00:29 +00:00
Daniel Novomeský 7e85e8f9a2 plug-ins: new speed levels possible for JXL export
JPEG XL plug-in can use very fast export settings:
thunder and the fastest lightning.
Compression slider is disabled for lossless
2022-01-08 23:21:36 +00:00
Jacob Boerema 1858d72d03 app: fix #7682 crash loading xcf with linked text layers
Due to recent changes on master the linked layers concept doesn't exist
anymore. The conversion code checks whether all linked layers are valid.
However, text layers need special handling.

In the past updating the linked_layers wasn't needed when the layer pointer
of a text layer was changed. Now, that has changed because we parse that
list for valid layers. To fix this we update linked_layers in the same
way as already was done for selected_layers.
2022-01-06 15:04:06 -05:00
Jehan 56d6cf6aa1 INSTALL, libgimp: document a bit better the GIR cross-tool exception. 2022-01-06 19:24:32 +01:00
Markus Volk c9fabacca2 meson: make gir buildable
yocto/oe is capable of building gobject introspection despite cross-compiling.
add an option to enable gir build even if cross-compiling

Signed-off-by: Markus Volk <f_l_k@t-online.de>

Reviewer note (Jehan): this whole stuff is a mess. Actually I'd like to
simply get rid of the whole no-gir-when-cross-compiling logics but I
still can't figure out how to cross-build generically with GIR.
Yet since some manage it with yocto, let's unblock them.
See #7208.
2022-01-06 18:58:08 +01:00
Rodrigo Lledó 4ab3284fb3 Update Spanish translation 2022-01-05 06:50:01 +00:00
Rodrigo Lledó e5ce2d7b18 Update Spanish translation 2022-01-04 13:35:28 +00:00
Daniel Novomeský 37c04cc9bc NEWS: update. 2022-01-04 13:39:41 +01:00
Daniel Novomeský 6da9a71aed plug-ins: adjust selection of precision during JXL import
There is no change for lossless images, where import precision
is directly related to bits_per_sample.
However, according JXL developers, for lossy images
(which generally use XYB color space), decoded data are not tightly
bound to bits_per_sample from header, import in 32bit
float precision can be used for better import quality
(libjxl works internally in 32bit float precision).
2022-01-04 12:28:54 +00:00
Jehan 1b8a5016f3 NEWS: update. 2022-01-04 00:15:13 +01:00
Daniel Novomeský 9bc971a466 plug-ins: use newer gexiv2 0.12.2 API in HEIF export 2022-01-03 15:33:39 +00:00
Jehan bea0618883 INSTALL: add xdg-desktop-portal in the runtime dependencies.
Cf. #1074 for color-picking, as well as the screenshot plug-in.
2022-01-02 19:48:32 +01:00
Daniel Novomeský eb42bbb6a8 build: remove gtk-doc from MSYS2 build environment 2022-01-02 17:42:50 +01:00
Daniel Novomeský 640bc9b7f1 build: update gi-docgen feature setting in flatpak 2022-01-02 11:24:18 +00:00
Tim Sabsch f4c67d8c04 Update German translation 2022-01-02 11:22:28 +00:00
Daniel Novomeský 6acb5fde3e configure, meson: bump libjxl dependency to 0.6.1
JPEG XL plug-in always imported all JXL images
in 32-bit float precision in the past.
Now it also supports direct import in 8-bit
and 16-bit integer precision too.
2022-01-01 17:40:52 +01:00
Niels De Graef 2da425ea5b libgimp: Migrate gtk-doc annotations to gi-docgen
Move some of the documentation from the constructor to the class itself,
so that it show up more prevalently.
2021-12-29 19:08:22 +01:00
Daniel Novomeský 68ad641583 crossroad gimp-win64 build: update gi-docgen feature setting 2021-12-29 12:55:09 +01:00
Niels De Graef 0446a9025a docs: Migrate some gtk-doc comments to gi-docgen 2021-12-29 11:21:19 +01:00
Jehan d5e22ad313 configure, meson, devel-docs: make gi-docgen into an auto option.
Also called "feature" option in meson, so that by default it depends on
auto-detection of the gi-docgen hence won't break the configuration when
the tool is missing (the feature is simply disabled).

Also move the program check into the root meson file, which is anyway
much better to have a better visibility of features, otherwise we'd end
up just having tests everywhere in any possible random directory of the
repo.

Finally add a line in the summary of the configuration step, displaying
the docs generation being enabled or disabled.
2021-12-29 00:58:10 +01:00
Niels De Graef 7473b24492 libgimpmath: Fix some vector gi-docgen annotations 2021-12-28 23:54:31 +01:00
Niels De Graef 6fc26cfbc4 libgimpcolor: Fix annotation in GimpRenderFunc 2021-12-28 21:23:42 +01:00
Niels De Graef a0495b1593 devel-docs: Fix configuration of gimp-3.0.toml
whoopsydaisy
2021-12-28 21:22:33 +01:00
Jehan 15b0828eb2 configure: typo fix.
Argh sorry!
2021-12-28 03:35:06 +01:00
Jehan cd7b48819c build: removing patches added for issue #5863.
One is a patch for a GExiv2 version below the one we now require, the
second is a patch for GIMP which is now committed and pushed.
Cf. commit 7ed68556c7.
2021-12-28 03:01:18 +01:00
Jehan 454d1daf1a Issue #5863: do not raise WARNINGs on Exiv2 unsupported tags on loading.
I was waiting for GExiv2 to merge a patch I submitted:
https://gitlab.gnome.org/GNOME/gexiv2/-/merge_requests/20

Then we waited for it to land in a released version then for this
version to be in Debian testing. It's all done now and we bumped the
GExiv2 dependency in the previous commit (which makes it a master-only
fix). So all good.
2021-12-28 02:54:12 +01:00
Jehan b4578a8d90 configure, meson: depend on GExiv2 0.12.2 or over.
Part of the fix for #5863, which is to depend on newer version of GExiv2
where I contributed new APIs using GError-s instead of GLib warnings for
metadata tag issues.
Now Debian testing packages GExiv2 0.14.0 (and MSYS2 has 0.12.3) so
let's bump the dependency for our dev branch.
2021-12-28 02:04:15 +01:00
Daniel Novomeský 1397440bab build: add gi-docgen dependency to MSYS2 build 2021-12-27 21:52:21 +01:00
Alexandre Prokoudine 9297ffeabe NEWS: updated translations 2021-12-27 13:09:15 +00:00
Niels De Graef 92e80d12e8 docs: Migrate from gtk-doc to gi-docgen
gtk-doc has been slowly dying for the past few years; with gi-docgen we
have a nice successor.

This also makes sure the C documentation also uses the GIR file, which
in turn means faster build times (since all the C code doesn't have to
be parsed and recompiled again), and has a clear dependency graph.

See the [gi-docgen tutorial] for more info on how the system works.

[gi-docgen tutorial]: https://gnome.pages.gitlab.gnome.org/gi-docgen/tutorial.html
2021-12-27 10:47:34 +01:00
Hugo Carvalho 3fe01513e7 Update Portuguese translation 2021-12-26 23:18:55 +00:00