Commit Graph

53407 Commits

Author SHA1 Message Date
59b7b6a5fb core: Use prior filter size for stack crops
Previously filters were cropped to the layer size in the
"crop_before" node. This was fine when we had destructive-only
filters, but now that we can multiple active layers, this causes
new layers to crop the prior ones if they're larger than the layer
(e.g. If gegl:drop-shadow goes out of the layer boundaries)

This patch sets the crop_before to the current sizes, then searches
the filter stack to see if there's a filter that needs a larger width
or height (or if it needs a smaller x or y values), then sets the crop
to that size. This crop update is also run when a filter is raised or
lowered.
2024-10-08 16:08:12 +02:00
42f8a61923 Update Chinese (Taiwan) translation 2024-10-08 14:01:51 +00:00
e4f94baaed Update Chinese (Taiwan) translation 2024-10-08 13:56:45 +00:00
80e6138f13 Update Chinese (Taiwan) translation 2024-10-08 13:47:51 +00:00
d007ab8c70 Update Chinese (Taiwan) translation 2024-10-08 13:41:23 +00:00
ba8145315b Update Chinese (Taiwan) translation 2024-10-08 13:06:35 +00:00
b93e50ef23 Issue #12126: Build broken since 741dc20b. 2024-10-08 01:10:53 +02:00
cf3aa1b6b7 build, gimp-data: do not hardcode the build directory.
This fixes building with the option -Dwindows-installer=true. We should
**never** hardcode the build directory like what was done in this
script.

Also bumping gimp-data where some scripts had similar issues which were
only visible with -Dwindows-installer=true.
2024-10-08 00:52:53 +02:00
afc0a6d15d actions,core,file: Copy inactive filters
Previously we used gimp_drawable_has_filters ()
to detect if a layer had any filters set.
However, this function only gets active
filters, leading to filters with their
visibility set to FALSE not being copied.
This patch checks the number of children
in the filter stack container instead to get
an accurate filter count.
2024-10-07 16:35:39 +00:00
1019574bcc Update Norwegian Nynorsk translation 2024-10-07 16:30:21 +00:00
296afcc4a1 Update Chinese (Taiwan) translation 2024-10-07 14:42:35 +00:00
b4766e22af Update Chinese (Taiwan) translation 2024-10-07 14:12:59 +00:00
22f383914d Update Chinese (Taiwan) translation 2024-10-06 10:37:57 +00:00
5c73482366 Update German translation 2024-10-06 08:42:00 +00:00
0a1a9a5035 Update German translation 2024-10-06 08:40:15 +00:00
93ada4eb3d Update Spanish translation 2024-10-05 22:18:19 +00:00
048899c688 Update Spanish translation 2024-10-05 22:16:02 +00:00
b4d4ed9dd6 Update Spanish translation 2024-10-05 22:11:12 +00:00
db761817ca Update Spanish translation 2024-10-05 22:08:03 +00:00
94a276973d app/tools: Add shortcuts for Paint Select modes
This patch ports the Add/Subtract mode
shortcuts from GimpSelectionTool to
GimpPaintSelectionTool, implementing
the unfinished gimp_paint_select_tool_modifier_key ()
function. The UI itself is left unchanged.
2024-10-05 14:54:20 +00:00
4b499d0975 Update Chinese (Taiwan) translation 2024-10-05 12:34:30 +00:00
d2360ac96f Update Chinese (Taiwan) translation 2024-10-05 12:25:17 +00:00
bb4620abc1 Update Chinese (Taiwan) translation 2024-10-05 12:13:03 +00:00
23ecae60a0 Update Chinese (Taiwan) translation 2024-10-05 11:09:49 +00:00
25473b4dc7 Update Chinese (Taiwan) translation 2024-10-04 18:03:13 +00:00
d4b1df9046 plug-ins: Fix 64bpp BMP loading 2024-10-04 07:41:20 -04:00
e0444990ba Update Slovenian translation 2024-10-03 21:43:42 +00:00
849de6c87f NEWS: update. 2024-10-03 22:10:39 +02:00
8e9a97672b app: fix wrong format restriction for indexed images.
When setting a new palette, we must not use the new palette format
restriction (especially if it has none!), but the indexed image's
format, which is unchanged anyway. So move the call to
gimp_palette_restrict_format() into gimp_image_colormap_update_formats()
and use the correct format to restrict to.

See: https://gitlab.gnome.org/GNOME/gimp/-/issues/12108#note_2238182
2024-10-03 13:52:29 +02:00
579b29f338 Map to Object filter: Fix incorrect section heading
Closes #12104
2024-10-03 10:26:33 +00:00
67fd22d0c2 scripts: Port 'Set Colormap' to use gimp-image-set-palette
Resolves #12108
This use of gimp-image-set-colormap was missed during
the API change in 3bfda4f1.
2024-10-02 23:28:12 +00:00
db0f68594a plug-ins: Add support for loading 64bpp BMPs
Adds support for loading BMPs with 64bpp.
Each channel uses 13 bits (2^13 max value),
so it's scaled to fit our 16 bit integer image mode.
2024-10-02 23:25:03 +00:00
ff1a92b81e libgimpwidgets: Fix infinite loop on appending invalid input
gimp_size_entry_eevl_unit_resolver () loops through all valid units
to find a match for user's inputted value in GimpSizeEntry.
It runs until gimp_unit_get_by_id () returns NULL, where it does a
final check on GIMP_UNIT_PERCENT.
Due to a small logic error, we kept setting the GimpUnit to
gimp_unit_percent () each time it was NULL, so the loop ran forever.
Per Jehan, this patch breaks the logic up so that we terminate the
loop once the percent check fails.
2024-10-02 23:21:05 +00:00
3eed201368 core: Scale filters with "output-extent" role
Some filters such as gegl:spiral have properties which limit
their width and height, separate from the gegl:crop nodes in
GimpDrawableFilter. As a result, they won't scale when the layer
or image is resized even if the crop is updated.

This patch checks if there's a "width" or "height" property with
the "output-extent" role in the filter, and updates those properties
to make sure it resizes correctly. Renders made from selections
are not modified, as the user specifically chose that size.
2024-10-01 10:45:30 +00:00
16006dae43 app: fix missing sentinel in function call warning
Building with clang i have "missing sentinel in function call" warning. The C callers to such functions use the C NULL definition (ie ((void*)0)), which is a valid sentinel. However the C++ NULL definition (ie 0L), is not a valid sentinel without an explicit cast to a pointer type.
2024-10-01 00:08:43 +00:00
88f615bccb Update Serbian (Latin) translation 2024-09-30 18:24:03 +00:00
d03434bdae Update Serbian translation 2024-09-30 18:22:33 +00:00
f75569c9dd Issue #12096: fix Windows build.
Commit 5b981adc7f was not taking into account that on Windows, the
gimp_resource_select_*() functions were made invisible and still needed
to be in the def file.

So this makes the 2 functions technically still exposed in the binary
even though the functions stay officially private (they are not in
header) and people are not supposed to use them directly in plug-ins.
2024-09-30 17:12:34 +02:00
741dc20bca tools: gen-languages must be compiled natively. 2024-09-30 17:12:34 +02:00
b961bf43f5 Update Norwegian Nynorsk translation 2024-09-30 13:17:48 +00:00
89c31344dd Update Norwegian Nynorsk translation 2024-09-30 13:12:43 +00:00
1234bc0ba4 Update Norwegian Nynorsk translation 2024-09-30 13:10:09 +00:00
eea2f35bbc Update Norwegian Nynorsk translation 2024-09-30 12:59:36 +00:00
ab171900b0 Update Chinese (China) translation 2024-09-30 12:47:07 +00:00
3884636656 Update Chinese (China) translation 2024-09-30 12:42:15 +00:00
36f5523465 Update Norwegian Nynorsk translation 2024-09-29 19:34:09 +00:00
69e4a581b4 Update Slovenian translation 2024-09-29 18:59:29 +00:00
48b5841414 Update Slovenian translation 2024-09-29 18:51:05 +00:00
411b082663 Update Ukrainian translation 2024-09-29 16:55:20 +00:00
d98fa4006f Update Ukrainian translation 2024-09-29 16:47:10 +00:00