Commit graph

53241 commits

Author SHA1 Message Date
Rodrigo Lledó
048899c688 Update Spanish translation 2024-10-05 22:16:02 +00:00
Rodrigo Lledó
b4d4ed9dd6 Update Spanish translation 2024-10-05 22:11:12 +00:00
Rodrigo Lledó
db761817ca Update Spanish translation 2024-10-05 22:08:03 +00:00
Alx Sa
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
Cheng-Chia Tseng
4b499d0975 Update Chinese (Taiwan) translation 2024-10-05 12:34:30 +00:00
Cheng-Chia Tseng
d2360ac96f Update Chinese (Taiwan) translation 2024-10-05 12:25:17 +00:00
Cheng-Chia Tseng
bb4620abc1 Update Chinese (Taiwan) translation 2024-10-05 12:13:03 +00:00
Cheng-Chia Tseng
23ecae60a0 Update Chinese (Taiwan) translation 2024-10-05 11:09:49 +00:00
Cheng-Chia Tseng
25473b4dc7 Update Chinese (Taiwan) translation 2024-10-04 18:03:13 +00:00
Rupert
d4b1df9046 plug-ins: Fix 64bpp BMP loading 2024-10-04 07:41:20 -04:00
Martin
e0444990ba Update Slovenian translation 2024-10-03 21:43:42 +00:00
Jehan
849de6c87f NEWS: update. 2024-10-03 22:10:39 +02:00
Jehan
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
Andre Klapper
579b29f338 Map to Object filter: Fix incorrect section heading
Closes #12104
2024-10-03 10:26:33 +00:00
Alx Sa
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
Alx Sa
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
Alx Sa
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
Alx Sa
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
lillolollo
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
Jehan
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
Jehan
741dc20bca tools: gen-languages must be compiled natively. 2024-09-30 17:12:34 +02:00
Kolbjørn Stuestøl
b961bf43f5 Update Norwegian Nynorsk translation 2024-09-30 13:17:48 +00:00
Kolbjørn Stuestøl
89c31344dd Update Norwegian Nynorsk translation 2024-09-30 13:12:43 +00:00
Kolbjørn Stuestøl
1234bc0ba4 Update Norwegian Nynorsk translation 2024-09-30 13:10:09 +00:00
Kolbjørn Stuestøl
eea2f35bbc Update Norwegian Nynorsk translation 2024-09-30 12:59:36 +00:00
Luming Zh
ab171900b0 Update Chinese (China) translation 2024-09-30 12:47:07 +00:00
Luming Zh
3884636656 Update Chinese (China) translation 2024-09-30 12:42:15 +00:00
Kolbjørn Stuestøl
36f5523465 Update Norwegian Nynorsk translation 2024-09-29 19:34:09 +00:00
Martin
69e4a581b4 Update Slovenian translation 2024-09-29 18:59:29 +00:00
Martin
48b5841414 Update Slovenian translation 2024-09-29 18:51:05 +00:00
Yuri Chornoivan
411b082663 Update Ukrainian translation 2024-09-29 16:55:20 +00:00
Yuri Chornoivan
d98fa4006f Update Ukrainian translation 2024-09-29 16:47:10 +00:00
Jehan
596ce11b5c libgimp, plug-ins: following up the renaming of GIMP_PDB_PROC_TYPE_EXTENSION…
… to GIMP_PDB_PROC_TYPE_PERSISTENT, let's rename some procedures.

s/gimp_plug_in_extension_enable/gimp_plug_in_persistent_enable/
s/gimp_plug_in_extension_process/gimp_plug_in_persistent_process/
s/gimp_procedure_extension_ready/gimp_procedure_persistent_ready/
2024-09-29 18:43:49 +02:00
Jehan
a9bc4c6c1b gimp-ux#93: GIMP_PDB_PROC_TYPE_EXTENSION renamed GIMP_PDB_PROC_TYPE_PERSISTENT.
Even though it's not public yet (and won't really be for GIMP 3.0), I
created a new concept of "GIMP Extension" (.gex files) which bundles
various types of data for GIMP, such as plug-ins but also brushes and
other resources, themes, icons, etc.

Having 2 different concepts named the same is confusing, especially
since one of them is not really self-explaining IMO (why are "always-ON"
plug-ins called "extensions"?). So even though this is the older
concept, and since we are anyway massively breaking the API for GIMP
3.0, let's rename this older concept. "Persistent Plug-Ins" is much more
self-defining.
2024-09-29 18:08:40 +02:00
Bruno
4a41b76411
build/linux: Update ghostscript, json-c and graphviz modules
Ported from: e499861f14
2024-09-29 12:58:47 -03:00
Cheng-Chia Tseng
7cd99865a1 Update Chinese (Taiwan) translation 2024-09-29 15:14:19 +00:00
Anders Jonsson
6c98bfdc8a script-fu: mark label for translation 2024-09-29 14:34:47 +00:00
Cheng-Chia Tseng
45b16f5215 Update Chinese (Taiwan) translation 2024-09-29 14:18:20 +00:00
Tim Sabsch
8b2120dac3 Update German translation 2024-09-29 13:07:45 +00:00
Alx Sa
1cfe27e73e app/widgets: Fix Fade visibility in Paint Dynamics Output Editor
The Fade curve is meant to use the widget's foreground color. The current
code detects this by checking if the curve's predefined color has an alpha
value of 0 - if it does, INPUT_COLOR (i) returns NULL and sends a NULL color
variable to gimp_curve_view_set_curve ().

However, since the GeglColor port, the "color" variable is an empty
GeglColor object rather than a pure NULL value. Thus, the line was always
drawn with the default GeglColor value which is difficult to see in light mode.

This patch adds a tertiary conditional statement so that a pure NULL is sent if
the alpha value is 0, rather than the color variable.
2024-09-29 11:22:26 +00:00
Jehan
c57c2dbbed NEWS: update. 2024-09-29 12:59:58 +02:00
Jehan
3f3c576399 libgimp: make GimpZoomPreview a final type. 2024-09-29 12:27:50 +02:00
Jehan
84b4f48432 libgimp: fix .def file indentation. 2024-09-29 12:27:50 +02:00
Jehan
5b981adc7f libgimp: make gimp_resource_select_*() API private. 2024-09-29 12:27:50 +02:00
Jehan
81fcb71209 libgimp: set 2 functions to GimpResourceChooser as private. 2024-09-29 12:27:50 +02:00
Jehan
eb07b7f8f8 libgimp: GimpProcBrowserDialog is a final type. 2024-09-29 12:27:50 +02:00
Jehan
16cfc9d681 libgimp: mark various private functions as G_GNUC_INTERNAL.
It may be more efficient this way on supported compilers.

Some of the private functions cannot be marked with this macro because
they are used across GIMP libraries (for instance some libgimp
functions are used in libgimpui, but are not meant to be public), while
they are not made public in headers. These are still considered private,
as far as API stability is concerned.
2024-09-29 12:27:50 +02:00
Jehan
12ad579843 libgimp: fix disabling various metadata export per Preferences.
Preferences > Image Import and Export tab has various Export Policies,
which are mostly for safety reasons. One may want to default at never
exporting specific metadata. This got broken and anyway the logic was
not good enough.

Now these policies are followed in interactive mode, unless an export
has already happened for this specific export plug-in on this specific
file (in this case, we reuse the last values). We don't want settings to
unexpectedly change in such a case.

In last-vals and non-interactive run-mode though, we don't follow the
Preferences policies, since in the former case, we want to reuse exactly
the same settings (e.g. we don't want an Export discarding metadata
which explicitly checked in the Export As) and in the latter case, it is
the developer's responsibility to set up expected options.
2024-09-29 12:27:50 +02:00