Commit Graph

47308 Commits

Author SHA1 Message Date
Boyuan Yang 828923dc84 Update Chinese (China) translation 2021-09-05 21:30:00 +00:00
Aurimas Černius 117fbc7500 Update Lithuanian translation 2021-09-05 20:41:50 +00:00
Øyvind Kolås 127bf7abfb configure,meson,app: depend on GEGL-0.4.32 2021-09-05 20:34:59 +02:00
Jehan fb7a9954b4 gitlab-ci: do not make the flatpak job interruptible.
Commit-triggered pipelines on `master` branch are apparently canceling
flatpak pipelines even though the flatpak jobs are not even in the
triggered ones.
In any case, these flatpak pipelines are not triggered often (only
through weekly schedule or manually triggered) so there is no need to
have such a flag.

See: https://gitlab.com/gitlab-org/gitlab/-/issues/340147
2021-09-05 20:06:51 +02:00
Piotr Drąg 30f215fb10 Update Polish translation 2021-09-05 17:30:28 +02:00
Jehan 2bc1dd1f9c build: fix flatpak manifest.
The option -Dcheck-update has been changed to a combo.
See commit f0be2256d0.
2021-09-05 17:06:05 +02:00
Jehan 44f72c5d77 gitlab-ci: flatpak artifacts must always be uploaded.
artifacts:when is set to on_success by default. Yet we clearly need the
build logs in failure case too in order to debug.

See: https://docs.gitlab.com/ee/ci/yaml/#artifactswhen
2021-09-05 17:03:34 +02:00
Ngọc Quân Trần f4bbaf4321 Update Vietnamese translation 2021-09-05 08:23:50 +00:00
Ngọc Quân Trần 22acc45df8 Update Vietnamese translation 2021-09-05 08:02:47 +00:00
Jehan 4f8ced1c7c NEWS: update.
Some changes in "Build" section backported to gimp-2-10 branch.
2021-09-04 21:31:28 +02:00
Boyuan Yang cce8946a69 Update Chinese (China) translation 2021-09-04 17:44:58 +00:00
Boyuan Yang d0fb53a042 Update Chinese (China) translation 2021-09-04 17:42:04 +00:00
Jehan 3e1143595e build: fix typo s/en_GN/en_GB/ 2021-09-04 01:18:07 +02:00
Jehan 3b3f5c8562 build: add new Lithuanian translation to the Windows installer.
This new unit test (test-installer-langs.sh) is great, showing us
inconsistencies between files!
2021-09-04 00:54:42 +02:00
Anders Jonsson 6c0b8c5def Update Swedish translation 2021-09-03 21:39:57 +00:00
Aurimas Černius 833783b70e Add Lithuanian translation
(cherry picked from commit baa4ce3ecd)
2021-09-03 18:20:42 +00:00
Stanislav Grinkov 8516221662
app: Correctly place merged down layer...
when the image is in indexed color mode, and bottom layer doesn't
have an alpha channel.

Resolves: #4945
2021-09-02 13:04:13 +06:00
Matej Urbančič d6dffdc99f Update Slovenian translation 2021-09-01 16:22:34 +00:00
Ngọc Quân Trần d8cbd6146a Update Vietnamese translation 2021-09-01 06:43:30 +00:00
Philipp Kiemle 6b3ef41b95 Update German translation 2021-08-30 20:11:39 +00:00
Rodrigo Lledó 968df76f09 Update Spanish translation 2021-08-30 20:09:14 +00:00
Matej Urbančič 03f538e910 Update Slovenian translation 2021-08-30 18:39:47 +00:00
Jacob Boerema d61a682b8b plug-ins: fix #7195 Exporting multilayer TIFF with EXIF saves some layers twice
If you first open a multi page TIFF, exiv2 generates EXIF tags for the
first 3 pages in the form of Exif.Image.<tags>, Exif.Image2.<tags>,
Exif.Image3.<tags>. When exporting with EXIF saving enabled, exiv2 thinks
it needs to save TIFF pages for the EXIF metadata of the second and third
page too. Those pages saved by exiv2 contain only metadata no real image
data and give warnings when loading.

The EXIF tags read from page 2 and 3 are only the basic image specs. We
don't use those, nor do we add tags to it. Until we support handling of
metadata for those pages and exiv2 has better support for all TIFF pages
beyond the first few, I see no reason to save this information.

So for now lets just delete all tags that start with Exif.Image followed
by a number.
2021-08-29 17:12:12 -04:00
Yuri Chornoivan b1ace8d460 Update Ukrainian translation 2021-08-29 17:08:47 +00:00
Jehan f04e7442f4 desktop: add an appdata section for 2.10.26 release.
We can see we are really working towards stability and consolidation
now, with few new features, but a lot of bug fixes.
2021-08-29 18:57:37 +02:00
Jacob Boerema 42e61104d7 plug-ins: fix #3740 Impossible to delete multi page tiff with thumbnail
On Windows there is a long standing issue in its File Explorer. When
GIMP exported as a multi page (multi-layer) TIFF with thumbnail saving
enabled, then the Windows thumbnailer apparently gets stuck and does not
close the TIFF file when browsing a folder. Because those files are not
closed it is impossible to delete them. This issue has been reported
many times over the years to Microsoft without any reaction.

Investigation showed us that this lock up only happens when we save the
thumbnail as a subifd. To resolve this issue we change this and now let
exiv2 handle our thumbnail saving, just as for other image formats. For
TIFF this means the thumbnail is saved as the second page of a TIFF.

Previous commits have made sure that it is now easier to recognize a TIFF
page as a thumbnail and to make sure we don't load thumbnail TIFF pages.

Since saving as a subifd is what made TIFF thumbnail saving different
from other formats, this commit consists of only removal of code.
2021-08-27 15:36:49 -04:00
Jacob Boerema 2a38ec9e4b plug-ins: when loading TIFF images ignore thumbnail pages
TIFF image pages can specify what type of image that page represents.

If the page is marked as FILETYPE_REDUCEDIMAGE we will consider it to be
a thumbnail and filter that out of the list of pages that can be selected
to be loaded.

In addition to that we will try to recognize certain pages as thumbnail
that don't have the subfiletype tag set.
We will consider it a thumbnail if:
- It's the second page
- PhotometricInterpretation is YCbCr
- Compression is old style jpeg
- First page uses a different compression or PhotometricInterpretation
If these conditions are true the page will also be filtered out.

We could consider having an option whether to filter out thumbnail pages.
Since in the situation up until now we also don't load thumbnails, I think
this should be considered as a separate feature.
2021-08-27 15:36:49 -04:00
Jacob Boerema d577e516c5 libgimp: set subfiletype to FILETYPE_REDUCEDIMAGE when saving EXIF thumbnails.
Setting the type to reduced image for a thumbnail makes it easier when
loading TIFF images to recognize a page as a thumbnail.
2021-08-27 15:36:49 -04:00
Jehan 49e534247a app, libgimp*, pdb, plug-ins: use g_memdup2() instead of g_memdup()
Since it appeared with GLib 2.68.0, we could not change this until we
bumped the dependency which has only become possible a few days ago
(since Debian testing is our baseline for dependency bumps). Cf.
previous commit.

As this is a drop-in replacement (just a guint parameter changed to
gsize to avoid integer overflow), search-and-replace with:

> sed -i 's/g_memdup\>/g_memdup2/g' `grep -rIl 'g_memdup\>' *`

… followed by a few manual alignment tweaks when necessary.

This gets rid of the many deprecation warnings which we had lately when
building with a recent GLib version.
2021-08-26 17:32:09 +02:00
Jehan d707e4cb1a autotools, meson: bump GLib dependency to 2.68.0.
GLib 2.68.0 was released on 2021-03-18 and has finally been added to
Debian testing (now that the release freeze is over!). So dependency
bumps are slowly going to happen again on the development branch.
Actually Debian testing has even 2.68.4, but it's a bit too recent and
2.68.0 is enough to get rid of some of the deprecation issues.
2021-08-26 17:02:15 +02:00
Rodrigo Lledó 61a7da626f Update Spanish translation 2021-08-26 13:07:22 +00:00
Rodrigo Lledó d65e82a65a Update Spanish translation 2021-08-26 13:07:05 +00:00
Yuri Chornoivan 595838fe8e Update Ukrainian translation 2021-08-26 10:18:09 +00:00
Jehan f0be2256d0 meson: -Dcheck-update option as a yes|no|platform-default combo.
Similar to the previous commit for the meson build system, the
'check-update' option is not a boolean anymore, but has now 3 values.
2021-08-26 01:25:52 +02:00
Jehan 0e46fadf43 configure: --enable-check-update now with an "auto" value.
By default, when on "auto", the update check feature will be set
depending on the OS. In particular, on Windows and macOS, it will be ON,
because these are the 2 OSes which we distribute without an update
channel, hence where people used to have very outdated versions of GIMP.

On Linux, *BSD, and so on, distribution provide updates through package
repositories.
2021-08-26 01:25:52 +02:00
Luca Bacci 1685746579
Only select available API's 2021-08-25 20:35:08 +02:00
Luca Bacci 825ea9dc1c
Move initialization order 2021-08-25 20:35:02 +02:00
Luca Bacci 012df8514a
Add a config enum for the pointer input API to use on Windows 2021-08-25 18:24:54 +02:00
Luca Bacci f6fc9d4245
Rename GimpLangRc to GimpEarlyRc 2021-08-25 18:23:17 +02:00
Anders Jonsson cbc4a3b9c2 Update Swedish translation 2021-08-23 20:39:24 +00:00
Yuri Chornoivan f479084652 Update Ukrainian translation 2021-08-23 19:52:12 +00:00
Jehan 855d5ce067 build: fix Windows installer build.
Since we don't build anymore a custom GLib and glib-networking, this
part also had to be reverted back.
2021-08-23 20:37:48 +02:00
Jehan f888a6f2f0 app: update menurc migration.
- Migrate "view-rotate-reset" to "view-reset" (there is a
  "view-rotate-reset" in GIMP 3, but it will be only for rotate; what
  was really doing the same-named action in 2.10 is now what
  "view-reset" does).
- Make sure we don't migrate "file-export" from a 2.10 config. From a
  2.8 or below, we don't to migrate it (same as for 2.8 to 2.10), but in
  a 2.10 config, it is already the same action as the one in GIMP 3.
2021-08-23 19:10:27 +02:00
Jehan 714e911851 Issue #7169: add app/core/gimppattern-save.c in POTFILES.in.
Since commit f130fe1917, this source file has translated text, hence
should be included in files checked for translations.
2021-08-23 18:38:16 +02:00
Jehan 15fb4a7be0 Issue #1168 - Allow resetting rotation view and flip view separately.
Action "view-rotate-reset" renamed to "view-reset" (resets both flipping
and rotate). New "view-rotate-reset" and "view-flip-rotate" for
resetting rotation and flipping respectively.
2021-08-23 15:46:11 +02:00
Jehan 753e994e1d app: forgot to also properly migrate the docks size.
Same as last commit, avoiding to end up with twice too big docks.
2021-08-23 13:57:38 +02:00
Jehan c43de62e99 app: config folder migration update for GIMP 3.
Fix the search for previous folders, which was broken as it was
specifically expecting 1-digit numbers so far.

The differences of the GIMP 3 config import are:

- update sizes and positions in the sessionrc according to the scale
  factor, because GTK2 doesn't have scale support. It means that, e.g.
  with a 2× display, all sizes and positions in GIMP 2.x must be divided
  by 2 (otherwise the first thing many people will get when testing GIMP
  3 for the first time is an off-screen window).
  Of course, I even wondered if it would not be nice to just drop the
  sessionrc altogether and start with a nice blank slate, but then you
  also lose the opened dock and their organization and some settings
  (such as whether you chose single or multi window mode, etc.).
- scripts/ and plug-ins/ are not imported. Probably makes no sense so
  far as they would end up broken (but maybe it's not true for all
  script-fu scripts?).
2021-08-23 13:37:11 +02:00
Jehan fadda1b8db devel-docs: we must still restart a plug-in to debug with SIGCONT.
Commit 59f2ba44c7 changed the devel docs to tell that on Linux, just
running the gdb command `continue` is enough to restart the plug-in
process. Maybe it is true on some specific setups, so I leave this part
of the note, but for sure it never worked for me. I may run `continue`
as many times as I want, the process stays stopped until I explicitly
send a SIGCONT signal (our code raises itself a SIGSTOP which requires a
SIGCONT for continuation of the process).

Maybe in some configurations, gdb actually sends a SIGCONT when
`continue` is run but not in others? No idea.

Anyway I add back the part about sending a SIGCONT too, then people can
test and choose which procedure works for them.
2021-08-22 19:01:10 +02:00
Jehan ef87f34ba4 Issue #6843: "Canvas Size" dialog takes too much vertical space.
Since the recent changes to add template ability, there are just too
many widgets stacked up vertically. Let's use a little better the
horizontal space.

To do this, I moved the preview on the right side of the "Canvas Size"
and "Offset" number fields, and the "Center" button just below it.
2021-08-22 18:21:37 +02:00
Jehan d0bef53ecd build: patch to configure libwmf with no freetype-config.
libwmf was still relying on a script called freetype-config instead of
using standard pkg-config. It seems it got wiped out in recent freetype2
(or at the very least, this script is not present anymore in freetype2
version 24.0.18 from master runtime of GNOME SDK).
This patch uses pkg-config in libwmf configuration instead.

As I also had some autoheader "missing template" warnings (which were
failing the recreation of config scripts), I add placeholder
descriptions to AC_DEFINE() macros, as this is apparently now mandatory.
2021-08-22 17:36:25 +02:00