Commit Graph

53867 Commits

Author SHA1 Message Date
Bruno b8ac9da4db
build/windows: Do not display strong bezel so better match Vista-style
Note: I reinforce that, despite the name, this doesn't look like Vista.

Following de556c0734

Microsoft use of bezel in Win32 and UWP/WinUI3 apps is inconsistent:
sometimes the bezel is there, others not. However, when displayed
the bezel never is that dark. So let's at least hide it, just how
we do in the Devel warning and Inno do in most dialogs.
2024-12-16 13:53:30 -03:00
Bruno 8a0c294a32
build/windows: Drop SSE check (outdated since 2018)
SSE2 (not the first SSE) instructions are required since 2012 on Windows 8.
Our minimum requeriment for 3.0 series is 10 so Inno built-in 'MinVersion',
by consequence, implies requesting SSE(2) without needing a custom dialog.
Then, let's cleanup this, which will make us gain a few (milli?)seconds.

Just to note, SSE2 (again, not SSE) is required even on Win 7 (since 2018).
2024-12-16 13:42:43 -03:00
Bruno 3b6d9b1662
build/windows: Generate 32-bit TWAIN dependencies list automatically
Fixes #12537

Following e59dec50
2024-12-16 13:42:28 -03:00
Alx Sa 8466d53bdc app/widgets: Use foreground color for handle outline
This makes the range handles for the Levels tool and other
auto-generated range widgets adapt to any theme color,
just like the Gradient Editor range handles currently do.
2024-12-15 16:13:43 +00:00
lloyd konneker 500ef62cc4 ScriptFu: change warning to info for lenient wrong arg count to PDB
It is like a compiler warning, and should not be a full g_warning,
which should mean something will probably fail.
Passing fewer args is a feature since 3.0: the PDB will use defaults.
2024-12-15 14:04:16 +00:00
lloyd konneker 059a6990e9 ScriptFu: cleanup some debug statements
Condense a few, eliminate a few.

Turn off the debugging of args in a Config.
2024-12-15 14:04:16 +00:00
Alan Mortensen 52f52a4607 Update Danish translation 2024-12-15 14:01:17 +00:00
Alan Mortensen c8605e0c93 Update Danish translation 2024-12-15 13:31:05 +00:00
Bruno 1309e98fb9
gitlab-ci, build: Implement GL collapsed logs (like GHA/CircleCI 'steps')
This provides us fine-grained info on how much time each step take,
making easier to spot stuckness and to quickly understand the logs.

'gimp' jobs normally do not take advantage on this due to log limits
(they expand and crop the log), so I adapted them to only output errors.

---

Also, to reduce logs, all jobs were reviewed with proper GIT_* variables.
2024-12-15 09:36:11 -03:00
Alan Mortensen 5577ae851e Update Danish translation 2024-12-15 11:57:23 +00:00
Alan Mortensen 36232bf442 Update Danish translation 2024-12-15 11:55:19 +00:00
Alx Sa 9059e64e7c app/tools: Use existing filter's drawable for thumbnail
We were unconditionally using the selected layers' drawable
when setting up the filter tool's dialogue. As a result, it
would use the wrong drawable as the dialogue thumbnail if a
different layer was selected while editing an NDE Filter.
This patch checks if we're editing an NDE filter, and if so,
uses its drawable instead.
2024-12-15 03:06:44 +00:00
Alx Sa 50262800ca plug-ins: Define Map Object GUI ranges
While we want to allow a flexible range for the
Box and Cylinder dimensions when called non-interactively,
having a large range in the GUI makes it difficult for
users to precisely set those values.
This patch adds calls to gimp_scale_entry_set_bounds ()
to match the 2.10 GUI ranges, while letting the values be
larger then that when called via the PDB.
2024-12-14 14:23:46 +00:00
Alan Mortensen 514dc70c72 Update Danish translation 2024-12-14 12:30:36 +00:00
Idriss Fekir 75cb93933a Issue #12376: Improve font matching on old XCF files
When opening an old XCF, we try to match the fonts specified in the text
layers (and the text tool) with the closest font (if the exact font isn't available).
This patch improves the matching heuristic a bit.
2024-12-13 19:06:21 +01:00
Alx Sa cc5129a562 plug-ins: Load images from .lnk shortcuts
Based on suggestions from Michael
Schumacher in issue #12239.
Until we implement native file picker dialogues,
Windows users can't load images from
Windows shortcut (.lnk) files.
This patch adds a plug-in to open these
.lnk files, extract the path, then try to read
it in via gimp_file_load ().
Similar to file-compressor, the error
messages are suppressed in the GUI so that
users don't get error messages if they click
on a non-image shortcut in the file picker.
2024-12-11 20:15:41 +00:00
Michael Schumacher 5018cba5cc app/tests: use gdk_display_get_monitor_at_window in window_roles ui test
This works on Wayland, and uses the monitor the GIMP image window is shown on.
2024-12-11 20:18:02 +01:00
Aki 2ef1126e6b file-tiff: Fix 1-bit TIFF export for indexed images with alpha
Only export 1-bit TIFF for black and white indexed images without alpha
channel. 1-bit TIFF with alpha has poor software support:
- GIMP: cannot read its own exported files
- macOS Preview: ignores MINISWHITE/MINISBLACK
- Windows Photo Viewer: shows as invalid image
- InDesign: ignores alpha channel
- tiff2rgba: fails to process
- Photoshop/Illustrator: corrupted rendering
2024-12-11 15:57:07 +00:00
Danial Behzadi d1e12c795f Update Persian translation 2024-12-11 15:10:16 +00:00
Danial Behzadi 696752eefd Update Persian translation 2024-12-11 15:05:45 +00:00
user062 a3968ddf70 Issue #12379: Don't pass invalid UTF-8 strings to fontconfig
Any font file path that's invalid utf-8, and/or any metadata (psname,
fullname, family...etc) that's not valid utf-8 should be skipped and not
passed to fontconfig.
2024-12-11 13:49:57 +00:00
Jehan 61cef720f3 Issue #7589: recommend Pango >= 1.55.0 to avoid ugly font breakage.
This issue has eluded us for a long time and it was recently fixed in
Pango (MR pango!745). We can't bump the minimum requirement because of
our bookworm baseline for GIMP 3.0.0, but we can at least warn when
building for macOS.
2024-12-11 14:22:30 +01:00
Michael Schumacher 7720cd6324 app/tests: send keyboard keys to the shell, not the window 2024-12-11 12:48:06 +01:00
Michael Schumacher 45e9b140f1 po-libgimp: Add missing space to pa.po to unblock from commit hook 2024-12-11 08:20:41 +00:00
Jehan a18d347bf5 desktop: fix AppData unit testing when in RC+git code.
We still want the normal GIMP_RELEASE C macro to be set because the
whole development frame should have code behaving like release code, yet
only for the AppStream metadata testing, we want to allow a "TODO"
release date while in +git code.
2024-12-11 09:18:13 +01:00
Alx Sa e6ad3ad0cd plug-ins: Add support for importing CMYK PAM files
While not an "official" tupl type for PAM files, software such as
mutools can export CMYK PAM files. This patch adds support
for loading such images.
Note that PAM files do not include color profile information. In
the future, we might add an option to convert using a pre-defined
color profile for this and other formats like EPS.
2024-12-10 01:27:17 +00:00
Bruno 522b9cedf2
build/linux: Move appimage making to separate job and make it weekly
The "AppImage platform" don't have releases, every tool is blending edge.
Obviously, it is too prone to broke, and for the first time it got broken.
So, let's move it to a separate job and with less frequency to not broke CI.
2024-12-09 22:09:08 -03:00
Hugo Carvalho 23f9ef1d96 Update Portuguese translation 2024-12-10 00:08:04 +00:00
Hugo Carvalho de78cd2485 Update Portuguese translation 2024-12-10 00:03:47 +00:00
Michael Schumacher 75a19577e5 app/tests: use gtk_test_widget_send_key instead of gdk_test_simulate_key
Two tests were consistently timing out before this change:
save-and-export and ui. The gdk_test_simulate_key documentation mentions that
gtk_test_widget_send_key is the right approach for most testing purposes.
With this change, save-and-export started working for me, whereas ui now fails
properly - investigating this failure was the original point of the change.
2024-12-09 22:00:11 +01:00
Jordi Mas bec457d126 Update Catalan translation 2024-12-09 06:43:27 +01:00
Rūdolfs Mazurs 6a747a355f Update Latvian translation 2024-12-08 22:02:03 +00:00
Jacob Boerema 62c7658f38 libgimpbase: exclude Exif.SonyMisc3c tags when exporting
Closes #12518

Certain Sony camera's have MakerNote tags in the Exif.SonyMisc3c range.
When exporting with EXIF metadata included this causes a failure saving
the metadata, which means that no metadata at all is saved to the image.

For now, let's exclude these tags, so that all other metadata tags at
least will be saved.
We will keep an eye on exiv2 issue
https://github.com/Exiv2/exiv2/issues/2670
to see if the actual cause will be solved.
2024-12-08 13:44:49 -05:00
Jacob Boerema 0d0a656b88 plug-ins, metadata-viewer: Show more interpreted strings for makernote tags
A lot of the custom brand makernote tags have interpreted strings
available, even though their type is set to Byte.
Since having those interpreted doesn't have any negative side effects
(real Byte values are correctly converted) let's not exclude these
tags for interpreted string conversion.
2024-12-08 13:33:08 -05:00
Bruno 3e5166f4cf
build/windows: Drop workaround to stuck pacman
Note: the original workaround was superseded by: 9ab48164

The actual workaround (which adress the same issue) is being dropped since,
according to my tests, seems that the MSYS2 issue was fixed. See: #10782
2024-12-08 09:04:09 -03:00
Rupert Weber a261fdb91b plug-ins: bmp import - overhaul 2024-12-07 23:49:39 +00:00
Alx Sa b6be63eae3 app/display: Connect GimpStatusBar to icon size changes
Inspired by Mark Sweeney's work.
This patch passes the user-defined button
icon size from GimpDisplayShell to
GimpStatusBar, and updates the
Soft Proofing button and current tool
icon sizes based off of it.
2024-12-07 18:19:48 +00:00
Alx Sa 5eb9b6ac4b app/widgets: Update colormap count when adding new color
This patch creates a gimp_colormap_selection_colormap_changed ()
function that gets the new colormap count and updates the entries
and spinbutton maximum in the Colormap Selection widget.
Previously the palette view was being refreshed, but the rest of the
widgets in the dialogue were not being updated to match when a
new color was added.
2024-12-07 15:11:10 +00:00
Kolbjørn Stuestøl dd8e47caa3 Update Norwegian Nynorsk translation 2024-12-07 13:40:53 +00:00
Kolbjørn Stuestøl b7fcccf4c9 Update Norwegian Nynorsk translation 2024-12-07 13:39:29 +00:00
Jehan 27e4c10e81 desktop: prepare the RC2 release with AppStream metadata. 2024-12-06 16:56:59 +09:00
Jehan 7b4211b24e plug-ins: PageUp/Down is also commonly used same as Up/Down arrows in terminals. 2024-12-06 15:42:55 +09:00
Jehan 8dd13d85fc app: fixing a leak of duplicated string. 2024-12-06 15:42:55 +09:00
Alx Sa d471ba45c7 display: Prevent drag and drop color fills on invisible layers...
...if user has "Allow editing on non-visible layers" turned off.
2024-12-05 04:25:55 +00:00
Simon Munton d1e20e5e31 plug-ins: fix #12500 End of file error loading PSD file
The block size for layer info should be a multiple of 2.

We had erroneously thought it was a multiple of 4, based on what is used
for layer resources. But of course Photoshop is inconsistent and uses
a multiple of 2 here.
2024-12-03 10:41:56 -05:00
Alx Sa 91203b76cb plug-ins: Return error on sel2path if no selection
This notifies plug-ins and scripts that sel2path did not execute
because there was no active selection.
2024-12-01 23:08:57 +00:00
Alan Mortensen b61455e35f Update Danish translation 2024-12-01 15:00:05 +00:00
Alan Mortensen 7d2c04d80f Update Danish translation 2024-12-01 14:57:27 +00:00
Bruno e38dae1bb1
build/linux: Output go-appimage build number for easier debugging 2024-12-01 07:51:52 -03:00
Bruno 058d62c308
gitlab-ci, build/linux: Ensure that AppImage .log can always be downloaded
The fix is how we do in any other job.
2024-12-01 07:51:01 -03:00