Commit Graph

53366 Commits

Author SHA1 Message Date
b3b466dcbc gitlab-ci: Do not trigger crossbuilds anymore
febb2126 was proposed temporarely while we had hope of having a fix.
Now, we have !1860 (apparently 99% done) but the main maintainer of
crossbuilds refused to look at it because he is focused on core code
until 3.0 so, with this timeframe, the commit lost its reason to exist.

So, to avoid keeping runners work unnecessarelly with abandoned jobs,
let's not trigger them ('when: never') as I proposed on IRC months ago.
2024-09-22 07:44:41 -03:00
f5804fa82b Issue #12063: CTRL+C handling breaks 32-bit build.
Should fix:

> error: passing argument 1 of 'SetConsoleCtrlHandler' from incompatible pointer type
2024-09-21 15:39:24 +00:00
c812da7e23 Issue #8832: fix metadata string corrupted on Linux
On Linux the string for GPS coordinates was broken when the
string it was strtok:d from was freed. Move the free until we
have finished using the resulting string.
2024-09-21 14:12:52 +00:00
0f8b586582 core, tools: Prevent selection from affecting NDE filter redraw
gimp_drawable_filter_apply () uses the current
selection as a boundary to draw/redraw a
filter. When editing a filter, if there's an
active selection created after the filter is
added, it interferes with the filter's redraw.

This patch adds a new gimp_drawable_filter_apply_with_mask ()
function, which can be called if we want
to use the existing filter's boundaries to
draw the new filter.
2024-09-21 13:33:31 +00:00
94b5898aa0 Update Chinese (Taiwan) translation 2024-09-20 15:35:38 +00:00
cfece57018 Update Chinese (Taiwan) translation 2024-09-20 15:19:26 +00:00
697efa72aa Plugins: fix old font defaults giving missing resource warnings
A plugin declaring a default font that is invalid warns at startup.
No such plugins should be installed by GIMP, even for a testing build.
2024-09-20 10:34:41 -04:00
b7376a57a7 ScriptFu: fix compiler warning "format string is not a string literal" 2024-09-20 10:58:50 +00:00
653cca0993 Plugins: Stain, convert to v3 ScriptFu binding of PDB return values
Easier to read, more canonical Scheme
2024-09-20 10:58:50 +00:00
eb57122365 Plugins: fix Stain plugin call to changed Distress Selection plugin
Symptom is "Arg 3 invalid or out of range".  Issue not formally reported.

Broke because Distress Selection plugin signature changed: arg Threshold type Int=>Float
2024-09-20 10:58:50 +00:00
f7f71ae292 ScriptFu: enhance error messages for range errors in calls to PDB
Refactor: extract methods for int and float range errors

Enhance by naming the called PDB procedure

This helps script authors find the location of an error.

These errors can occur either when first authoring a plugin,
when a user stresses a plugin in a way not previously tested,
or when a called PDB procedure or plugin changes an argument type or range.

Note that calls from SF scripts to other SF plugins
are not always via a PDB call and then not range checked.
2024-09-20 10:58:50 +00:00
c03a4b6132 Make luma lighten only, darken only use linear blend mode
Issue #3471 Unexpected results from luma darken only blend mode

Having the blend mode be perceptual results in the unexpected
result that a color with a lower actual XYZ "Y" value - that's
also clearly visibly darker than the underlying layer - can be
considered as "lighter" than a color with a higher "Y" value.

Reviewer's (Jehan) note: this only changes the default's blend space,
but in fact, we should probably even make the blend space immutable for
these 2 layer modes because the algorithm doesn't make sense in
perceptual (see #3471). We are not doing this right now in order to
not break existing XCF files using these modes in perceptual. We'll have
to figure out later how to have an immutable blend space going forward
while allowing the broken blend space but only for existing XCF images.
2024-09-20 01:26:33 +02:00
0a33ba5a69 app: implement Ctrl-C handling for Windows.
This should also fix the build on Windows wich fails with:

> ../app/app.c:537:7: error: call to undeclared function 'gimp_signal_private'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2024-09-19 20:05:53 +02:00
f9efe07df6 Update German translation 2024-09-19 15:21:25 +00:00
1e866c433a meson: fix non-x86 builds.
The Aarch64 build failed with the following error because of a recent
change:

> ../meson.build:617:24: ERROR: Unknown variable "have_x86".
2024-09-19 15:04:20 +02:00
998c65f4e2 NEWS: update. 2024-09-18 23:26:21 +02:00
78665ca372 extensions: the lua binding (and its example plug-in) is now marked as experimental.
We have too many issues with the lua binding, so until someone finds a
solution, mark it officially as experimental.

See discussion in: https://gitlab.gnome.org/GNOME/gimp/-/issues/11895#note_2225885
2024-09-18 22:54:02 +02:00
8f3931a45e app: continue running GIMP when run non-interactively without --quit.
Right now, running GIMP non-interactively (i.e. either as gimp-console
or with --no-interface) without --quit, the process was still exiting
immediately, yet not properly cleaning after itself. This is a
regression, since there used to be use cases with people wanting
long-running GIMP (for instance with a long-running plug-in waiting for
input through whatever inter-process communication method).

With this commit:

* GIMP now continues running when run non-interactively without --quit;
* It will catch SIGINT (typically Ctrl-C) and will quit cleanly when the
  signal happens.
* At the end of the normal process (processing command line options,
  such as opening images or running batch commands) and before going
  on-hold, it will display some info text saying that the process can be
  exited with SIGINT and informing that --quit exists if you were in
  fact intending to quit immediately after the normal process actions.
* This also fixes the "gimp_finalize: list of contexts not empty upon
  exit" WARNING we had when it was exiting without --quit (because of no
  proper cleanup).

Note that I add some CLI text which ideally should be localized. But
since we are in string freeze, I am letting them untranslated with a
TODO (also assuming CLI-using people have more chances being used to
English, which may be or not a wrong assumption; but anyway most people
don't read the terminal output, and people running GIMP
non-interactively are even less).
Since this was not just an enhancement but also really a regression fix,
I prefer to do this now despite the string freeze and lack of
localization.
2024-09-18 22:27:19 +02:00
2d063d8876 app: add the exact GimpContext subtype for stale context at exit.
It helps a bit for debugging.
2024-09-18 22:14:23 +02:00
7fed33ec84 Update German translation 2024-09-18 18:41:12 +00:00
d67676a48b Plugins: Decor>Stencil Chrome use v3 binding and style changes
No intended change to function.
Style changes for easier reading.

Use v3 binding of PDB returns (elide many car), TRUE=>#t, etc.

Also condense trailing right parens to one line
2024-09-18 11:34:18 -04:00
4f9a860569 Plugins: Decor>Stencil Chrome: relax image mode requirements (sensitivity)
Was "GRAY" without alpha.
Now "*" i.e. any image mode, w or w/o alpha.
The effect is more or less the same,
and should be exactly the same if the user submits a GRAY.
2024-09-18 11:34:18 -04:00
dd241e9c71 Plugin: Stencil Chrome: allow user not to choose a secondary image
When the user does not choose a file of a secondary image,
use a copy of the primary image as the secondary image.
Rather than throw an error.
The filter still has effects, if not quite the same as when user
chooses a secondary image that is not the primary image.
2024-09-18 11:34:18 -04:00
f4ae230e4d ScriptFu: fix handling of args for GFiles
Represent passed Gfile args having unknown files
or invalid GFile by an empty string.
Instead of by an error string.
A script can treat an empty string as a None choice of file,
or as a user error.
2024-09-18 11:34:18 -04:00
0f96855613 Update Ukrainian translation 2024-09-18 06:55:31 +00:00
269531123b Update Chinese (China) translation 2024-09-18 01:54:37 +00:00
528df2143f build/windows: Comment .ps1 scripts regarding 'gimp-release' 2024-09-17 21:43:28 -03:00
67bd7b677b plug-ins: "history" is supposed to be an aux argument.
This got mistakenly changed in commit 4bf5dc7b97.
2024-09-18 01:34:46 +02:00
d7f9c5e57e Fix #12044 broken build gcc14 incompatible pointers 2024-09-17 14:12:21 -04:00
0bab4c356a meson: update the "Detailed backtraces" optional feature summary.
This was mixing 2 features: the debug on crash and performance logs in
the Dashboard dockable.

1. DrMingw is for debug on crash on Windows and has already a report in
   the meson summary. So I remove it from the test.
2. Linux specifically with libbacktrace and/or libunwind and Windows but
   only x86 (32/64) only are supported. Test updated.
3. Summary field updated to "Detailed backtraces (Dashboard)" for more
   clarity.
2024-09-17 19:10:06 +02:00
eb4d99b080 Update Slovenian translation 2024-09-17 15:15:03 +00:00
15ae108150 ScriptFu: fix defaults for script args of type Resource
Script authors declare defaults by name strings.
Which can be valid name, or empty string, or "from context".

ScriptFu declares formal arguments to the PDB,
either with a default GimpResource, or defaulting dynamically from context.

Works with both new-style dialogs (ProcedureDialog and ProcedureConfig)
or with old-style dialog (script-fu-interface.c)
2024-09-17 12:06:37 +00:00
1513f41614 plug-ins: Restore drag arrows in Sample Colorize
This feature was broken during the initial
port to GimpProcedureConfig, due to the
Out Level parameters not being properly
clamped when interacted with. This patch
fixes the clamping and restores the call
to level_in_draw () to show the arrows.
It also sets the gamma widget's increments
to match 2.10's range.
2024-09-17 12:06:32 +00:00
290e46b912 script-fu: Fix missing label in Distress Selection
Since the port to GimpProcedureDialog,
the Threshold label was not being shown
due to it accidentally having an invalid
tag, <-->.
This patch renames it to just "Threshold"
and updates the range to be clearer,
which was the purpose of the original
extended label.
2024-09-17 11:15:13 +00:00
fde9567e58 Update Bulgarian translation 2024-09-17 07:17:57 +00:00
339cb976c4 Update Bulgarian translation 2024-09-17 05:18:12 +00:00
b0647c2365 Update Bulgarian translation 2024-09-17 04:46:23 +00:00
ed39d83091 Update Bulgarian translation 2024-09-17 04:43:28 +00:00
313770a0c1 Update German translation 2024-09-16 19:19:26 +00:00
e898791a10 build/windows: Fix acidental revisions in scheduled pipelines
Some maintainers use the common pratice of evaluating variables to 1,
which breaks the revision detection code. Let's special case this.
2024-09-16 14:41:01 +00:00
b5cbe4e9dc gitlab-ci, gimp-data: always test the install phase too.
See: https://gitlab.gnome.org/GNOME/gimp-data/-/issues/3
2024-09-16 12:04:29 +02:00
ca9d57a417 build/windows: Generate checksums again in MSIX script
This fixes a regression introduced with bd288617
2024-09-15 17:19:44 -03:00
537df7f9d8 gimp-data: update.
Two data-related bugs are fixed in the gimp-data repository.
2024-09-15 19:05:26 +02:00
12370d7dab Issue #11808: The RGBA channels cannot be duplicated anymore or used with…
… the selection commands.
2024-09-15 17:14:37 +02:00
d225d58a22 app: fixing "unused variable" warning.
The warning appeared as consequence of commit 281548a022 which made the
drawable variable (and consequently tool too) unused.
2024-09-15 17:03:16 +02:00
aa10a33db9 build/linux: Sync with Beta manifest regarding imath, poppler, suitesparse and graphviz
Ported from: 1ddf27837b
2024-09-14 17:44:04 -03:00
45e23b25a6 Update German translation 2024-09-14 19:21:45 +00:00
281548a022 app/tools: Use existing filter's drawable to get filter stack
Resolves #12034

Previously, we used the Filter Tool's drawable when updating an
existing filter. However, if the user has a different layer selected than
what the edited filter is attached to, the edited filter is always put at
the top of the filter stack.
This patch retrieves the drawable from the existing filter itself, rather
than assuming the filter tool's drawable is the same one.
2024-09-14 02:10:29 +00:00
837d26cae4 Update Norwegian Nynorsk translation 2024-09-13 19:45:39 +00:00
62c86a5e72 plug-ins: Replace GimpRGB in map-object 2024-09-13 12:32:34 +00:00