Commit Graph

44649 Commits

Author SHA1 Message Date
e976481034 app: fix gimp_plug_in_cleanup_item_new().
This fixes a memory leak as reported by Massimo.
But even more, we fix the code logics, as the cleanup items were never
added to the `item_cleanups` list.

(cherry picked from commit ee09ae7245)
2021-08-16 15:08:41 +02:00
939f0caa19 Show message dialogs in preferences dialog
(cherry picked from commit ac0a084e6e)
2021-08-16 15:08:41 +02:00
82612aff49 Update Swedish translation 2021-08-16 12:28:30 +00:00
b4a712e198 Update Ukrainian translation 2021-08-16 10:25:20 +00:00
0fde875bd3 Update Spanish translation 2021-08-16 07:22:03 +00:00
114cfc95e8 Update Spanish translation 2021-08-16 07:17:44 +00:00
0fccc87cb6 app: improve error message loading pattern that is too large
As noted in issue #6032 the error message when trying to open a pattern
file with dimension larger than supported could be a little clearer.

We do this by adding the maximum allowed dimensions to the error message.

(cherry picked from commit 317b5d9cff)
2021-08-09 18:28:16 -04:00
d9e82494b4 app: disallow saving of patterns larger than max allowed dimensions
For GIMP patterns we have maximum allowed dimensions which we check when
loading a pattern. However, we did not check this when saving a pattern.
See issue #6032.

This commit adds a check when saving a pattern and adds a descriptive
error to make clear why saving fails.

(cherry picked from commit f130fe1917)
2021-08-09 18:27:59 -04:00
fb099cbf2a plug-ins: fix build failure on Windows due to incompatible mkdir call in script-fu
On Windows mkdir only accepts one parameter. Fix this by using g_mkdir
which takes care of platform specific details internally.
2021-08-09 18:11:30 -04:00
05403696cb libgimpbase: fix #1350 Failure to load metadata importing image with non-latin unicode path
On Windows loading metadata from images with non ASCII characters in their
path failed. Part of the fix is in gexiv2 that now converts the path from
utf-8 to utf-16 on Windows.

However we were still sending a localized path to gexiv2 where it was
expecting utf-8. This caused the conversion and thus loading of metadata
to fail. Fix is to remove the special handling for Windows and use the
utf-8 filename.

(cherry picked from commit 65950de735)
2021-08-09 12:25:44 -04:00
85e4521b93 plug-ins: fix #2655 Can't open EPS-files with german Umlauts
Due to differences between Windows and most other platforms Ghostscript
didn't correctly load files with special characters on Windows.

First we needed to make sure that the filenames we use are in utf-8
format and then tell gsapi that we use utf8 encoding.

(cherry picked from commit 4f86d8088d)

# Conflicts:
#	plug-ins/common/file-ps.c
2021-08-09 12:10:51 -04:00
762939162c Update Slovenian translation 2021-08-09 07:52:27 +00:00
11a43aebdf Issue #5415: compensate for null byte
When exporting a C source file with runtime length encoding, the
C-string's array size does not accomodate for the null byte. However,
GIMP accomodates for the NULL byte in it's NON-RLE export, suggesting
that this has been a mere oversight for RLE.

This can cause at the worst a compile-time error and at least a warning
from the compiler.

(cherry picked from commit 4d528f297f)
2021-08-05 19:54:19 +02:00
fcefb409e5 Issue #5267: Cage transform tool causes artifacts.
I somewhat bisected GEGL commits between 0.4.20 and 0.4.24 and found
that the one that introduced the env var GEGL_OPERATION_INIT_OUTPUT is
the first showing the problem.

Reviewer (Jehan) note: so it would be commit 6e9610e65c on GEGL repo.
This fix makes sense as it means that since this commit, the output
buffer could have random values. It's not a problem for any operation
where we fill every value, but I guess it's not the case for
"gimp:cage-coef-calc" which was likely relying on the old behavior of
being 0-initialized.

(cherry picked from commit 3b2a8f79f0)
2021-08-05 17:12:19 +02:00
75871f0418 Issue #5989 - performance improvement patches for gtk and gimp
Reviewer comment (Jehan): we have used this patch successfully on our
installers since start of 2021 (see commit b4d665d of our gtk-osx fork)
and it really improved the situation. I only fixed minor coding style
stuff in the patch.
Looking at what it does, I guess it is not ideal long-term if related to
10-bit display (as I understand from the comment), which a graphics app
would want to support properly. But for now, this is better than
extra-slow display until we get macOS developers able to look at this
more in depth in the future (I don't think that our dependencies are
really ready yet for 10-bit display support anyway, though I may be
wrong).
Some other forums seem to say it comes from macOS invalidating now more
than it should (i.e. the whole area instead of only the changed area)
and this NSViewUsesAutomaticLayerBackingStores flag would disable this
behavior. It might be one of these reasons, the other or both. This is
anyway a good first start for future contributors.

(cherry picked from commit 4f9b7373e6)
2021-08-04 21:52:50 +02:00
5ad7ef10c3 Issue #6610: crashes on free select for images of certain dimensions.
g_alloca() is unadvised. Even though it might be more efficient in some
specific cases, it is pretty subject to stack overflow when a lot of
memory is requested.

Let's allocate dynamic memory instead. To avoid doing it too much, let's
just reuse the same pointer especially since region of interest will
usually be the same size when iterating a buffer, except for border
ones (which would usually be smaller, so we can use the same allocated
buffer again). I still make size checks, just in case.

(cherry picked from commit f2fb98cb69)
2021-08-04 19:36:12 +02:00
b274cc07d9 plug-ins: fix #7086 Can't remove color space from a 1bit monochrome palette
For 1-bit BMP export we did not show the save dialog, making it
impossible to change settings interactively.

We enable the save dialog for 1-bit too, making sure to disable RLE, which
is not available for 1-bit.
2021-08-03 16:13:30 -04:00
a69dc492ca Update Swedish translation 2021-07-31 11:24:49 +00:00
1b51d1d78d Update Chinese (China) translation 2021-07-29 19:11:40 +00:00
7395b2d262 Update Chinese (China) translation 2021-07-29 19:09:00 +00:00
f3a676d064 app: fix #5153 keyboard shortcuts Shift+[ and ] don't work on most keyboards
On most keyboards the [ and ] keys are shared with { and }. Which means
that if you press Shift+[ you get {. We were using this key combination
to increase the tool's size by 10 and the other to decrease it by 10.

However, on all keyboards where these keys share the same physical spot
on the keyboard, this wasn't working.
So, let's change the actual keys to do this to { and }.

(cherry picked from commit 42fe8abc98)
2021-07-28 14:40:22 -04:00
3be387b3e3 Update Swedish translation 2021-07-25 20:14:54 +00:00
dbd568a1ec Update Polish translation 2021-07-25 12:52:27 +02:00
912f5c5814 Update Ukrainian translation 2021-07-24 06:25:01 +00:00
a0a089004a plug-ins: fix previous cherry-picked commit. 2021-07-23 16:46:28 -04:00
e629e3e7d2 plug-ins: fix #1146 DICOM with big endian transfer syntax fails to load.
Our plug-in was not correctly handling DICOM images that use big endian
transfer syntax, which is deprecated.

We add support for that here, add a few g_debug statements to make future
debugging easier, and also return an error when we encounter a transfer
syntax that we can't handle instead of blindly continuing.

(cherry picked from commit e0707af073)

# Conflicts:
#	plug-ins/common/file-dicom.c
2021-07-23 15:37:58 -04:00
300599f52c plug-ins: add support for planar configuration in DICOM images.
Part 1 of the fix for #1146.

In addition to that we also add some g_debug statements to make it easier
to determine certain image info.

(cherry picked from commit 3733a36d84)
2021-07-23 15:31:59 -04:00
473a91c494 Update Spanish translation 2021-07-19 13:24:44 +00:00
da37571d92 Issue #6994: Color Noise produces artifacts with highly saturated…
… source colors

Reviewer's (Jehan) note: a git blame shows this is a clear bug
introduced in commit 9d19bf2a3e, which was a cleanup patch, and the
BOUNDS() macro was not doing exactly the same thing as the code before
the change.

(cherry picked from commit 3b3f34cd22)
2021-07-17 19:03:28 +02:00
56cf217579 Update Dutch translation 2021-07-14 09:30:21 +00:00
73a9cb50ac Update Polish translation 2021-07-11 12:34:23 +02:00
3047ea9c5b Update Ukrainian translation 2021-07-05 16:39:36 +00:00
6829274dde app: add a comment and some newlines before the debug data section.
The markdown triple-quote (```) has to be on its own at the start of a
newline. Schumaml was telling me that too many reporters would paste
just after some text, which would therefore break the markdown syntax.

Instead let's add 3 newlines before the triple-quote, so that even
people who would not hit the "Copy Bug Information" button (but instead
select and copy) have a hint that these newlines are made on purpose.
Also add a comment (which is discarded by Gitlab) to make this even more
obvious.

Then even when pasting just after some text on the same line, the
triple-quote will end up on its own line.

(cherry picked from commit d3105e5c72)
2021-07-05 16:45:52 +02:00
26baa0527d app: check if an item was already inserted by actually looking it up in…
… the container.

There was this weird case which we somehow could only reproduce on
Aryeom's computer/build, not mine, with the same code and reproduction
steps (reproducible at will on her build only). Basically when drag'n
dropping a duplicated layer inside a collapsed layer group, the
row-expanded handler would try to select the moved layer before it is
actually inserted. This would end up into crash-happy code.

I'm still unsure of why the order of operation is different here, but
anyway what is for sure is that the `inserting_item` boolean flag was
not protecting much. It's not like it's an actual mutex and anyway this
is not multi-threaded code either so this flag was mostly useless (which
is why we were crashing). Instead let's actually look if the item is in
the container or not.
2021-07-05 10:41:52 +02:00
1dd7e8ac55 Update Dutch translation 2021-07-01 11:11:59 +00:00
371c5f9a76 Update Russian translation 2021-06-26 03:42:59 +03:00
89b930cedf Update Catalan translation 2021-06-03 06:10:33 +02:00
c920260765 Update Catalan translation 2021-06-03 05:59:26 +02:00
f880844183 Update Catalan translation 2021-05-31 07:49:56 +02:00
d6685d8951 Update Spanish translation 2021-05-25 06:17:35 +00:00
a038051bb8 plug-ins: fix #6859 Hurl random pct limits in PDB are incorrect 2021-05-24 14:56:41 +00:00
557a19469a plug-ins: fix incorrect cherry-picking of previous commit. 2021-05-19 22:29:37 -04:00
815e624851 plug-ins: fix #6116 grayscale gif animation hangs on export.
GIF export was not taking into account that there can be
both grayscale layers with and without alpha in an image.

We make sure that the GEGL buffer knows the type of
drawable for the current layer.

(cherry picked from commit 3b3ab0aa11)

# Conflicts:
#	plug-ins/common/file-gif-save.c
2021-05-19 17:49:01 -04:00
ad5aa1a6b1 Update Spanish translation 2021-05-18 12:05:09 +00:00
63a9ef7915 Update Slovenian translation 2021-05-13 07:45:40 +00:00
2c6866f8a6 Update Slovenian translation 2021-05-13 07:45:23 +00:00
f2c2163be4 NEWS: update. 2021-05-12 13:18:57 +02:00
be32831984 Update Vietnamese translation 2021-05-12 07:03:21 +00:00
496582b160 Update Vietnamese translation 2021-05-12 06:54:27 +00:00
af76c091cb Issue #6852: Don't include gimp30-tips.mo in binary package
Similar to previous plug-in but only for autotools. Separated in its own
commit for easy cherry-picking to `gimp-2-10` branch.

(cherry picked from commit a4a6ac59e0)
2021-05-11 14:38:41 +02:00