Commit Graph

46231 Commits

Author SHA1 Message Date
0052803313 devel-docs: REVERT THIS once module.actions get removed automatically
Add the newly generated .actions files to CLEANFILES manually.
2020-10-25 20:18:52 +01:00
4e79aaf20c devel-docs: add the newly generated module.actions files to .gitignore 2020-10-25 19:57:30 +01:00
d5892c4794 desktop: set the appdata 2.99.2 release date to today 2020-10-25 19:20:06 +01:00
12cf70596d docs, etc: regenerate the default gimprc and its manpage 2020-10-25 19:15:58 +01:00
fa37ca9aa0 po*: update POTFILES.skip with the new toplevel extensions/ folder 2020-10-25 19:14:35 +01:00
1640a25159 NEWS: some more news items. 2020-10-25 17:20:26 +01:00
517f7e707e NEWS: more API update.
I added a lot more details about the API change. I'm sure I am still
missing many things but that still gives a good gist, at least of the
main API updates.
2020-10-25 16:08:11 +01:00
ea8da00dd8 NEWS: update with many of the major API changes.
I don't list all the function changes (and will probably won't have the
time before release anyway), but at least the major changes. Some of
them actually triggered by themselves dozens of function signature
changes (for instance using objects instead of IDs or using GFile
instead of strings representing paths).
2020-10-25 13:00:30 +01:00
3ddec66471 Update Russain translation again 2020-10-25 13:03:55 +03:00
f243b4743f Update Russian translation 2020-10-25 12:59:49 +03:00
df8d0bccba Update Polish translation
Fixes https://gitlab.gnome.org/Teams/Translation/pl/-/issues/9
2020-10-25 10:02:42 +01:00
7e6ced5c99 Issue #5322: [Wayland] broken splash size.
This is not a fix, only an extra-ugly workaround so that at the very
least we don't end up with a splash screen taking the whole display on
Wayland.

Basically by setting 1/3 as the max splash size, a Wayland desktop with
no scale ratio will have a splash taking a third of the screen while it
would take 2/3 of the screen with a scale ratio of ×2 (of course, it
will still be very broken with a scale ratio of ×3 but are there
displays needing such high scaling?). The real fix will be when GTK/GDK
fix their API so that it returns what the docs says it should (i.e. a
size in "application pixels" not "device pixels"), as it does on X11,
Windows, macOS… Then we won't create random max size and we will be able
to properly control our splash size.

Note that this neither fixes nor works around the position issue on
Wayland (in my case, the splash was just always on top-left of the
display).
2020-10-25 00:55:26 +02:00
f336f86f60 plug-ins: use g_message instead of g_printerr when there is data loss.
After discussion with Jehan we concluded that it is better to report
these data loss messages to the user using g_message.
2020-10-24 18:33:26 -04:00
3a50e52ac7 app: fix some glitches in the splash status text.
These small glitches have bothered me for a while now, so I finally
fixed these before the dev release!
Basically there were 2 fixes:
1. use the ink extents to compute any drawn area as this is what will be
   actually drawn.
2. Not only expose the drawn area of the new text, but also the one of
   the previous text in order to be sure all text pixels are correctly
   reset (in case the new text is smaller than previous one). I.e. we
   must expose the smallest rectangle containing both previous and new
   area of text.
2020-10-25 00:00:05 +02:00
8e97d56d1e libgimp, libgimpbase: don't use a fixed GIMP 2.10 version number in exif metadata. 2020-10-24 14:23:53 -04:00
e4514567f9 plug-ins: don't try to read tiff pages with an invalid directory.
We didn't check whether TIFFSetDirectory succeeded nor did
we check TIFFReadScanline for failure which can cause
unresponsiveness.

We will not try to read a tiff page if setting its directory fails
and we will stop reading a page if reading scanline fails.
2020-10-24 13:52:15 -04:00
c6063183d3 Issue #4922: install software-update-available from Adwaita on hicolor.
I took the icon directly from Adwaita repository as of today's version:
https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/blob/master/Adwaita/scalable/status/software-update-available-symbolic.svg

By being installed on our local GIMP-only hicolor, this gets picked up
after any custom theme software-update-available version. I didn't
install it inside the Symbolic or Color theme because anyway Adwaita
seems only to provide a single vector version. There is a color version,
yet as PNG icons and installed in the legacy/ section. I don't think it
makes sense to use an icon considered as legacy by its author and
without vector version. So I just install the symbolic version and all
themes can fallback to it (be them symbolic icon themes or not).

This icon comes from the Adwaita repository and is therefore licensed
under the terms of either the GNU LGPL v3 or Creative Commons
Attribution-Share Alike 3.0 United States License. See:
https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/blob/master/COPYING
2020-10-24 19:43:40 +02:00
2920a13609 Issue #5809: missing dependency on libm for libgimpwidgets/test-eevl 2020-10-24 18:24:14 +02:00
e676ad46ec app: clean tab indentation. 2020-10-24 03:05:20 +02:00
7462945360 plug-ins: fix a type warning.
Since obj->type_data is also int anyway, multiplying by a double value
is unneeded anyway. So let's just make an integer multiplication.
Fixes the following warning:
> warning: using integer absolute value function ‘abs’ when argument is
> of floating point type ‘double’ [-Wabsolute-value]
2020-10-24 02:58:38 +02:00
7957653e98 plug-ins: fix #3757 Exporting invalid tiffs: Missing required "ImageLength" field.
Because of Exif.Thumbnail.* tags file-tiff-save saved an invalid extra page in
exported tif images. Removing these tags fixed this for me.
2020-10-23 17:39:09 -04:00
679fe079f6 libgimpbase: fix copy-paste error in documentation comments. 2020-10-23 12:51:04 -04:00
c10bb098b4 plug-ins: file-tiff-save looks for the wrong exif tags to delete.
The correct tag for sub images is Exif.SubImage instead of
Exif.Image. I also added Exif.Image.InterColorProfile since
that didn't seem to get deleted when saving without
color profile.

Also added a FIXME note since most of this stuff should be
genealized for all gimpmetadata handling.
2020-10-23 12:51:04 -04:00
9b0b20698e libgimp: only save metadata after all settings have been updated.
Saving metadata was added inside the loop where the flags for
the differen types of metadata etc. to be saved were updated.
This caused multiple calls to save metadata with inconsistent
settings.
2020-10-23 12:51:04 -04:00
f67312293a Update Russian translation 2020-10-23 14:35:06 +00:00
c86d909dda plug-ins: fix parameters of Gimp.file_save().
It now requires a list of drawables (even though still mostly useless,
but this comes with the change of multi-selected layers).
2020-10-23 15:20:21 +02:00
1baaeabb87 Update Ukrainian translation 2020-10-23 06:56:02 +00:00
bca4d434b3 NEWS: update with new "file-heif-av1-load" procedure.
`gimp-2-10` branch has a common load procedure for HEIC and AVIF, but
the main file-heif contributor (Daniel Novomesky) considers it better to
have 2 procedures. Among other things, it helps to allow using a
separate plug-in for AVIF while this procedure is still used for HEIC.

This won't be backported to 2.10 because it changes the existing
procedure usage. So it's a master-only change, hence adding it to NEWS.
2020-10-23 00:42:50 +02:00
68cea84658 app: fix AppStream tag localization.
As AppStream docs says, <description> "tag should be translated
by-paragraph" in upstream metadata, which is what we have always done
(i.e. <_p> tags which becomes <p xml:lang="xy">).

Unfortunately as_app_get_description() is optimized to work for
Collection Metadata where the 'tag is translated "as a whole"' (again
cf. specs) for faster parsing. So we were ending up with a text mixing
the original and all localized texts.
I have opened a bug report to appstream-glib:
https://github.com/hughsie/appstream-glib/issues/381

While waiting for this to be fixed (i.e. when the function will handle
both cases accordingly to the metadata source), this code makes my own
locale extraction (defaulting to original text which is assumed to be
the previous same level tag with no xml:lang if no tag with the exact
lang attribute was found).
2020-10-23 00:24:16 +02:00
35c0d7dca6 HEIF plug-in: runtime detection of supported formats 2020-10-22 16:46:51 +00:00
e869a11270 gitlab-ci: temporary allow distcheck job failure.
I really don't like to flag the distcheck job as allowed to fail, but
the issue we have with it right now (#5790) is very annoying and I have
no idea where the weird uncleaned files come from. I can't reproduce
this locally and these files are seemingly never created here during a
distcheck.
Since it makes all our pipelines fail, this makes it harder to diagnose
and find real other bugs, so let's allow failure until we figure this
out.
2020-10-22 18:44:27 +02:00
5c03dd1677 extensions: goat-exercise appdata depends on po files.
Make sure we regenerate the appdata file when po files are updated. It
should not be too much of a problem for release builds made from
scratch, but on incremental dev builds, the appdata was not regenerated
even when new translation got added.
2020-10-22 17:18:43 +02:00
6c26d39c8e app: unstable versions will check available development releases.
Stable versions (i.e. minor version number even, e.g. 2.10.22) will only
look for higher stable releases. But for unstable versions, we will want
to look up the development releases too. So for instance GIMP 2.99.2
will warn if the development version 2.99.4 has been released, but also
if the stable version 3.0.0 has been released (whatever is the highest,
which is the stable version in this example).
2020-10-22 16:18:31 +02:00
89db5f65fd app: properly free internal strings at finalization and before…
… overriding their previous value.
2020-10-22 16:04:38 +02:00
057b94f5f5 app: use gimp_viewable_is_ancestor() instead of gimp_item_is_ancestor().
I had recently created gimp_item_is_ancestor() but realize it duplicates
gimp_viewable_is_ancestor() (which works on GimpItem since it's a parent
class). No need for duplicate code.
2020-10-22 12:45:33 +02:00
fc25709367 configure: do not show "profile support: yes" when HEIC support is OFF.
Same as previous commit but for autotools, in a separate commit for easy
cherry-pick.
2020-10-22 11:57:12 +02:00
e736b5fa0c meson: do not show "profile support: yes" when HEIC support is OFF.
Note that profile support also affect AVIF but since AVIF support came
anyway after libheif 1.4.0 (which is when color profile support
appeared), there is no way to differentiate there.
Thanks to Darix for noting the miss.
See: https://gitlab.gnome.org/GNOME/gimp/-/issues/5787#note_938976
2020-10-22 11:54:51 +02:00
4b9dc93d08 app, pdb: set string arguments to "" *after* the GFile.
Thanks to Wormnest for pushing me to look further. Since gimp-file-save
is actually redirecting the call to another procedure (save proc for the
specific format) which might have more arguments, including string
arguments. When it finds any, it sets it to an empty string "" (which I
guess is ok as "default value when we don't know what to put there").

The previous code would not hurt. Starting at the fourth argument
(GFile), it would just do nothing, then continue with the firth and
further. Still, starting directly at the fifth arg is the proper code
for this.
2020-10-21 20:28:38 +02:00
0f6e43f0b8 pdb: fix gimp-file-save PDB procedure implementation.
I fixed the wrong file in my previous commit (it's a generated file!).
This is the right one.
2020-10-21 18:40:18 +02:00
9487c5648b app: fix gimp-file-save PDB procedure implementation.
The GFile was taken from the wrong argument.
2020-10-21 17:58:19 +02:00
1a90a2df32 app: fix alpha to selection on single layer with offset. 2020-10-21 17:36:58 +02:00
eee04288c8 data: new splash screen for GIMP 2.99.2. 2020-10-21 16:24:47 +02:00
3f3c5b242e build: improve a bit the dll_link build script.
Add a --debug mode which will help for testing and improve various
pieces of code.
2020-10-20 18:04:10 +02:00
29565fcfd8 Update Ukrainian translation 2020-10-20 06:34:20 +00:00
05bb84ebed Issue #5788: 10/12 bpc in HEIF export does not mean HDR. 2020-10-19 20:47:07 +02:00
22b8cd305c autotools: separate line for HEIC and AVIF support.
Similar to previous commit for meson (separate commit for easy
cherry-pick to gimp-2-10).
2020-10-19 20:15:35 +02:00
7ada877b4d Update Ukrainian translation 2020-10-19 17:44:58 +00:00
cb2268ab21 meson: separate line for HEIC and AVIF support.
libheif pc files provides variables which are actually older than our
minimum libheif requirement (so it's usable generically) to determinate
if libheif was built for HEIC/AVIF support. This is quite useful as we
had our share of annoyance with missing support of some encoder/decoder
even when libheif requirement was alright.

Also adding image/avif (if relevant decoder is present) to list of
supported mimetypes.
2020-10-19 18:56:13 +02:00
172bdbaad3 Update Spanish translation 2020-10-19 07:10:38 +00:00
2ac9b6069b Update Spanish translation 2020-10-19 07:09:28 +00:00