Commit graph

53557 commits

Author SHA1 Message Date
Bruno
de3cf104e3
build, plug-ins: Bundle and distribute correct python*.exe
According to Jernej and my searches pythonw.exe should be used for stable
releases and python.exe for unstable as commented in the changed files.
2024-11-19 09:30:57 -03:00
Alx Sa
a7a10be70f core: Refresh NDE filter crop after Transform Tools
Resolves issue #12252
Unlike the layer and image commands for scale layers,
the Transform Tools use gimp_item_transform () rather than
GimpDrawable's scale/rotate code. Therefore, the filter's crop
was not being refreshed, resulting in the layer being cut off
after the transform.
This patch moves the gimp_drawable_filter_refresh_crop ()
code to gimp_item_transform () so that the new layer size
is taken into account in the filter.
2024-11-19 03:27:36 +00:00
Daniel Novomeský
c08d2ecd40 plug-ins: fix crash in HEIF import 2024-11-18 16:52:59 +01:00
Bruno
f0fb443553
build/windows: Auto repair Inno langs if .ps1 script is interrupted
027013c7 was fine but not good enough. Without this new commit,
if you stop the script after touching the Inno lang files and run
the script again it would not restore the patched lang files so
patch over patch, producing something like "GIMP 3.0.0 3.0.0".

So, this new commit identifies if the script wasn't completed and
repair Inno installation before applying the patches again.
2024-11-18 12:03:40 -03:00
Alx Sa
a9056419ce app/tools: Use NDE filter's drawable for on-canvas transform grid
Resolves #12403
gimp_filter_tool_set_transform_grid () is used to draw the on-canvas
transform grid for filters. It always assumes that the tool's selected
layer should be used to define these boundaries.
With NDE filters, you might be editing a filter on a different layer than
the actively selected one. This patch checks if an existing filter is being
edited, and if so, we grab the drawable from the filter rather than from
the tool.
2024-11-18 15:02:47 +00:00
Alx Sa
8021b46414 pdb: Set choice args to default in gimp-file-save
In gimp_file_save (), we clear out the values
of any String parameters to prevent unexpected
results. However, GimpChoice is also a
String type. This causes the function to
fail because empty string is not a valid
option for GimpChoice.

This patch adds a prior check if the argument
is a GimpChoice, and sets it to its default
value instead to prevent this issue.
2024-11-18 13:32:38 +00:00
Julia Dronova
21d834ec9b Update Russian translation 2024-11-18 12:24:41 +00:00
Bruno
73bbb31242
build/linux: Make AppImage script work locally 2024-11-18 07:40:30 -03:00
Rūdolfs Mazurs
00dfe03904 Update Latvian translation 2024-11-17 13:29:44 +00:00
Rūdolfs Mazurs
b26d4972b1 Update Latvian translation 2024-11-17 12:57:08 +00:00
Rūdolfs Mazurs
3e324e6a7d Update Latvian translation 2024-11-17 12:56:02 +00:00
Bruno
32aeb4f630
build/windows: Make .ps1 scripts produce checksums in common format 2024-11-16 15:49:13 -03:00
Bruno
67c842b705
build/windows: Document 'App Paths' registration 2024-11-16 14:56:55 -03:00
Bruno
c15d9367b8
build/windows: Make backslashes more consistent in installer .ps1 2024-11-16 10:50:46 -03:00
Bruno
027013c7a0
build/windows: Make installer .ps1 script less pervasive
- Do not install Inno if it is already updated
- Delete unofficial langs after creating the .exe installer
- Ensure that all .isl files are kept as before the patching
2024-11-16 10:50:43 -03:00
Jiri Grönroos
9f876f06ad Update Finnish translation 2024-11-16 10:15:37 +00:00
Jiri Grönroos
6c846c14dd Update Finnish translation 2024-11-16 10:09:12 +00:00
Jehan
b13d4d9d17 app: use the "show all" value of the shell where cursor_image is displayed.
This is an attempt to fix #12333 where from the look of the trace, the
segfault may happen if it tries to dereference a NULL view->priv->shell
whereas we have a view->priv->cursor_image. Even though I couldn't
reproduce, I'm wondering if it may possible to have no active image
display while the cursor is indeed hovering an image.

Furthermore this updated code is more logical anyway, because we should
use the "show all" value from the actual display shell the cursor is
hovering, not from the active display shell.
2024-11-16 14:30:35 +09:00
Jehan
89fc9c6606 app: fix typo. 2024-11-16 11:33:27 +09:00
Anders Jonsson
1ead14f6ed app: fix dead link on RC releases
The welcome dialog creates a link to the release notes for stable
versions, but it also uses it for RC releases even if the
release notes for the final release haven't been written.

Check the version for "RC" to avoid creating dead links.
2024-11-15 22:25:59 +00:00
Bruno
743c4ed67d build/windows: Display 'DEVEL_WARNING' in RCs installer
This option wasn't implemented in the 2020s when the installer creation
process started to be done on CI, but this option was used in 2.10 RCs.
2024-11-15 19:17:36 +00:00
Alx Sa
8249151299 libgimp: Draw full gradient in GradientChooser button
When we converted to GeglColor arrays in 6327d1b3, we
didn't adjust the call to gimp_gradient_select_preview_draw ()
that still assumed we passed in 4 doubles per pixel instead
of 1 GeglColor. This patch removes the division operation so
that we see the full gradient in the chooser button.
2024-11-15 16:12:34 +00:00
Sveinn í Felli
f40f9bcff1 Update Icelandic translation 2024-11-15 11:49:37 +00:00
Jehan
ffee5cc98e gitlab: ask about display system on Linux in our default bug report template. 2024-11-15 12:32:10 +09:00
Alx Sa
45d0d4bef2 app/core: Use babl for histogram luminance values
This replaces the GIMP_RGB_LUMINANCE () macro with
babl_process () to retrieve luminance from pixels
in GimpHistogram. This allows us to consider the
color space during the conversion, rather than assuming
sRGB always.
2024-11-14 19:29:49 +00:00
Kolbjørn Stuestøl
a24d95d9cb Update Norwegian Nynorsk translation 2024-11-14 18:52:17 +00:00
Sveinn í Felli
444695cc1f Update Icelandic translation 2024-11-14 17:54:17 +00:00
Alx Sa
0cd0206917 app/plug-in: Fix expected argument count for Layer/Channel menus
Resolves issue #12365
Per Kamil Burda, since we no longer have an array length parameter
for layer and channel procedures, the required minimum size of
procedure->num_args should be 3 and not 4.
2024-11-14 13:25:06 +00:00
Alx Sa
56d207e98d plug-ins: Fix color format for Smooth Palette...
...when drawable has alpha channel.
We always created GeglSamplers in RGB format,
but used the original drawable's format to create a
GeglBuffer. If the original drawable had an alpha
channel, this caused "glitchy" results since not
enough data would be copied into the new buffer.
This patch resolves the issue by making the format
match the original drawable's number of channels.

Resolves Issue #12362.
2024-11-14 11:33:14 +00:00
Daniel Novomeský
c0395d1d4b plug-ins: fix grayscale+alpha JXL import 2024-11-14 11:10:22 +00:00
Bruno
7fc13e398d
build/windows: Fix 'graphviz' bundling and only bundle it if GIMP_UNSTABLE=1
This was broken, see #12119. Now is fully bundled with DLLs and config, but
will not work on .exe installer because gegl have bugs: GNOME/gegl#394.

However, this should be bundled only in dev releases (due to "Debug" menu).
But not for 32-bit because MSYS2 doesn't provide 32-bit pango plugin for dot.
2024-11-14 07:30:19 -03:00
Bruno
db0a12463c
build/windows: Reference "correct" gimp executable on .cmd wrapper 2024-11-14 07:30:15 -03:00
Bruno
e22fb67dba build: Bundle jpeg, gif and tiff loaders for non-PAT patterns support
Fixes: #12351

In short, some time ago we were asked by a MSYS2 guy about the possibility of
they dropping pixbuf loaders and some of us said that we just need SVG/PNG for
UI. I tested and confirmed it so the debloating (c808d13b) kept only these two.

However, seems that was said in the same discussion that we also need others for
non-PAT pattern loading. After testing, let's bundle JPEG, GIF and TIFF loaders
following: https://testing.docs.gimp.org/3.0/en/gimp-concepts-patterns.html

BMP is already bundled for legacy clipboard (a4671d72) and will work here too.
PNG too, of course, otherwise GIMP UI wouldn't even load, as pointed above.

---

Other formats are supported by pixbuf but some can make patterns: unportable,
e.g. HEIC (my ponderation); or even buggy, e.g. WEBP (@ok ponderation). So,
let's NOT bundle all loaders like before the debloating, just the safe ones.
2024-11-13 22:22:37 +00:00
Kolbjørn Stuestøl
428eeb8190 Update Norwegian Nynorsk translation 2024-11-13 20:27:42 +00:00
Kolbjørn Stuestøl
014cda5dd9 Update Norwegian Nynorsk translation 2024-11-13 20:26:22 +00:00
Bruno
711ed64f38
build/windows: Separate "MSYS2" prefix from GIMP_PREFIX in crossbuilds
This finally makes our crossbuild scripts work like in all other platforms:
with GIMP_PREFIX separated from the system/MSYS2 prefix. Thanks, @Jehan.

For some reason this makes meson don't find only 'bzip2' headers provided by
the cross compiler so, in crossbuilds, let's use the ones provided by MSYS2.
2024-11-13 10:51:34 -03:00
Jehan
ce2a9dc3eb Issue #12317: settings not imported from previous versions.
This was looping down from the minor version which is 0 for GIMP 3.0.0!
2024-11-12 22:20:43 +01:00
Alx Sa
abd863579b dialogs: Don't show Check for Updates button on About Dialog...
...when "check-release" is set to FALSE on build.
This is consistent with the option being hidden in the Welcome Dialog
and Preferences Dialog.
2024-11-12 19:37:24 +00:00
Sveinn í Felli
ab5b4718df Update Icelandic translation 2024-11-12 16:57:50 +00:00
Sveinn í Felli
ae134c75b6 Update Icelandic translation 2024-11-12 16:46:56 +00:00
Kolbjørn Stuestøl
b028694373 Update Norwegian Nynorsk translation 2024-11-11 19:19:28 +00:00
Kolbjørn Stuestøl
7da4bb0656 Update Norwegian Nynorsk translation 2024-11-11 19:17:58 +00:00
Bruno
10f8b5a1c1
build/windows: Fix bundle() function not working locally
I needed to make very rushed fixes (like 0b19f8c9) to release RC1 in
time so didn't have time to test locally.
2024-11-10 19:00:10 -03:00
Bruno
a4671d721b
build/windows: Bundle bmp pixbuf loader again to proper clipboard support
Fixes: #4802 and #12148

This is needed to paste some images sent to Windows clipboard as .bmp.

---

Also, comment the reason to bundle the other loaders and the gio folder.
2024-11-10 14:03:12 -03:00
Bruno
9fa2461ecc
build/windows: Distribute python3.12 on the .exe installer
Just routine maintenance otherwise the installer will not build. We need to
manually change this since Inno does NOT support wildcards on directories.
2024-11-10 09:54:03 -03:00
Bruno
19b392048f
build/windows: (Probably) finalize .iss organization
This should be enough to make Inno scripts humanly readable,
a long process started in 9af3579f.
2024-11-10 09:30:21 -03:00
Jordi Mas
9525d67057 Fixes to Catalan translation 2024-11-10 13:28:35 +01:00
Alx Sa
6ff3e80d0b app/display: Initialize GimpDisplayShell's unit property
Since GimpUnit is now an object, if it's used in functions while
NULL it can cause issues. This patch initializes it to
gimp_unit_pixel () to remove the CRITICALs we received when
setting up rulers when "Show All" is enabled.
2024-11-09 22:09:20 +00:00
Cheng-Chia Tseng
817e19ee38 Update Chinese (Taiwan) translation 2024-11-08 18:53:20 +00:00
Cheng-Chia Tseng
a38295c17e Update Chinese (Taiwan) translation 2024-11-08 18:53:09 +00:00