Commit Graph

45915 Commits

Author SHA1 Message Date
0f806d0e9c app: move OpenCL settings into the Playground.
After discussions on IRC, it was decided that our current level of
support of OpenCL was not good enough. As a normal settings, people just
see it as a normal acceleration checkbox, even despite the warning text
and emoticone saying the opposite (i.e. it may even slow things down in
some cases).
Basically this feature needs more love to be back into mainstream
Preferences.
2020-07-17 12:04:27 +02:00
bc5f6371e9 app: add contents of /.flatpak-info in the verbose info.
This file is available in a flatpak sandbox and will contain various
info such as the build commit, very useful info as we can have several
builds for a same version. For instance if we have exactly the right
commit, we can load exactly the same binary as a bug reporter very
easily, hence are able to get source correspondance without necessarily
asking reporters to install debug symbols (though it stays easier if
they can do it).

Other interesting info contained in this file are the exact runtime
used, the installed application or runtime extensions, the permissions
(people may override our flatpak permissions so it's useful to be able
to check when they did) and environment variables…
2020-07-16 12:12:37 +02:00
f2ef0ec6a5 Update Chinese (China) translation 2020-07-14 15:24:22 +00:00
Ell
e531023031 libgimpwidgets: handle Enter/Esc keys in GimpSpinButton
In GimpSpinButton, don't propagate Enter key-press events if
updating the spin-button's value in response changes the entered
text.  This prevents confirming dialogs when hitting Enter after
entering a math expression in size entries, updating their value
instead.

Likewise, don't propagate Escape key-press events if a new value
was entered, and restore the original value instead.
2020-07-14 13:00:55 +03:00
2e46e6552b Update Kabyle translation 2020-07-13 20:23:30 +00:00
24c740b0e0 Add Kabyle translation 2020-07-13 15:33:54 +00:00
0a611bd8ad Issue #5069: Gfig uses the Stroke color for filling instead of the fill color 2020-07-12 21:43:44 +02:00
74d0990456 app: fix Alpha to Selection for single selected layer.
By adding support for multiple selected layers, it seems I broke the
single selected layer case. Fixed now!
2020-07-06 23:15:12 +02:00
b52cdf4c90 app: make "gegl:matting-levin" default engine of Foreground Select tool.
Even though this engine is optional, we already have the code to detect
its absence at runtime, and to fallback to "gegl:matting-global". So it
won't be a problem even then.

When the operation is present though, it definitely makes a lot more
sense than matting global as default, because it performs a lot better
in most cases (as far as I could see as well as others).
2020-07-06 22:19:26 +02:00
1a19ac6a3a Try to reenable Print plugin on Windows. Let's see if the CI passes. 2020-07-06 17:49:59 +00:00
979b0bd9b3 Fix GIMP_UNSTABLE macro.
Fixes #5261.
2020-07-06 10:55:05 +02:00
fae85e704a Issue #5349: meson build with -Dpoppler=false has no effect.
Poppler has not been an optional dependency for years now, because it
was decided that PDF import was considered a granted feature by most
people. So removing the option in the meson build. This option should
not have existed in the first place.
2020-07-05 11:31:22 +02:00
47afc8170d gitlab: add a trailing space to the bug template reproduction list steps 2020-07-04 22:51:45 +02:00
89fa643ef9 Fix broken markup in Asturian UI translation 2020-07-04 19:23:04 +02:00
df5b363a96 Update Malay translation 2020-07-03 00:32:47 +00:00
fb8cdc4219 Update Catalan translation 2020-07-02 14:51:13 +02:00
f40d702696 Update Chinese (China) translation 2020-07-01 19:25:44 +00:00
15d0aac4fd Update Chinese (China) translation 2020-07-01 19:17:28 +00:00
73daf0fcfb Update Swedish translation 2020-07-01 09:52:39 +00:00
e21db99333 libgimp: fix documentation comment.
No need "See Also: gimp_drawable_get_shadow_buffer()" from within
gimp_drawable_get_shadow_buffer() documentation itself!
2020-07-01 11:09:52 +02:00
a774d542b5 Update Ukrainian translation 2020-07-01 06:18:11 +00:00
adeb3214a1 Add Malay translation 2020-07-01 02:50:37 +00:00
cd5f023267 Add Malay translation 2020-07-01 01:48:03 +00:00
5565a6a389 app: layers-resize-to-image action multi-layer aware. 2020-07-01 01:00:48 +02:00
86716ba8a4 app: fix gimp_image_merge_down() when merging multiple neighbour layers.
If the next visible layer below a selected layer is itself selected, we
want to create bigger merge list with all 3 layers merged at once (or
even more if the next-next is also selected, and so on).
2020-07-01 00:40:40 +02:00
955aecab92 app, pdb: layers-merge-down action now multi-layer aware.
When several layers are selected, each layer will merge down with the
layer below it. This is similar to running Merge Down several times, one
for each selected layer.
2020-06-30 23:29:05 +02:00
5cafcbe920 Update Central Kurdish translation 2020-06-29 15:57:49 +00:00
fa5e345fda Update Swedish translation 2020-06-29 00:09:47 +00:00
1c38e2122b Update Swedish translation 2020-06-29 00:08:34 +00:00
53b68bfc21 Update Basque translation 2020-06-28 20:06:00 +00:00
b5659e8aa4 Update Polish translation 2020-06-28 13:00:42 +02:00
d7e7457329 Update Ukrainian translation 2020-06-27 18:12:12 +00:00
240bc3ac45 Update Ukrainian translation 2020-06-27 18:08:41 +00:00
3edcaa4baa libgimp: do not assume there are selected layers.
The list of selected layers may be empty, which doesn't matter much
because we don't actually do much with this list in current export code.
In the code modified in this commit, we were only using existing layers
to set the type of a new layer (which seems very useless right now as
anyway the layer type has to be the image base type with or without
alpha, so a with_alpha boolean parameter would be just as good, unless
we plan to support different color model layers in a same image).
2020-06-27 18:17:15 +02:00
dadae644bf app: fix selected layers in duplicated image.
This seems to have been broken since much longer, but it only made a
problem with recent changes. Since we were duplicating layer groups and
contents layers at once, the current code could not keep layer selection
other than at root level in a duplicated image.
Use the layer paths to make sure we select exactly the right copied
layers, since the path should not change in a fully duplicated image.
2020-06-27 18:07:51 +02:00
257ada495f desktop: add a <developer_name> tag.
It just says "The GIMP team" so it's kind of redundant/useless, but I
noticed that Flathub would just display an empty "Developer" section
because the tag is absent. Well at least it emphasizes the
community-developed side of GIMP.
2020-06-27 11:19:54 +02:00
Ell
7f39be86de plug-ins: add option to crop layers to image bounds when exporting TIFF
In file-tiff, add an option to crop the layers to the image bounds
when exporting individual layers (using GIMP_EXPORT_NEEDS_CROP
added in the previous commit), since TIFF has no concept of global
image bounds otherwise.  Cropping is enabled by default.
2020-06-25 18:35:09 +03:00
Ell
4c8ee413eb libgimp: add GIMP_EXPORT_NEEDS_CROP export capability
Add a new GIMP_EXPORT_NEEDS_CROP export capability, which causes
gimp_export_image() to crop the exported image content to the image
bounds; this is useful for formats that support layers, but have no
concept of global image bounds, hence cropping is the only way to
enforce the image bounds.

When showing the export dialog, give an option to either crop the
layers to the image bounds, or to resize the image to fit the
layers.
2020-06-25 18:20:47 +03:00
Ell
536bf771b7 Issue #5274 - Exporting as TIFF fails for layers with a negative offset
When exporting a TIFF file without merging the image, make sure non
of the exported layers has a negative offset, by offsetting all the
layers as necessary.  TIFF doesn't support negative page offsets,
giving an error in libtiff.
2020-06-25 18:20:44 +03:00
8732f06196 Update Turkish translation 2020-06-25 00:47:23 +00:00
b86984e80f Add Asturian translation 2020-06-24 20:57:41 +00:00
f6c6c141ae Add Asturian translation 2020-06-24 20:55:23 +00:00
da9ad96c81 Update Asturian translation 2020-06-24 20:46:36 +00:00
Ell
46cb5a5e79 plug-ins: fix last commit for PLANARCONFIG == SEPARATE 2020-06-24 15:51:56 +03:00
Ell
8b9819339d Issue #5275 - TIFF files with signed-int samples are misinterpreted as unsigned
When loading a TIFF file with signed-int samples, convert the
samples to unsigned-int by offsetting them to the unsigned range,
instead of misinterpreting them as unsigned values.
2020-06-24 15:22:29 +03:00
e3085c9da8 Update Swedish translation 2020-06-21 16:02:56 +00:00
33520a547d app, libgimp: protect a bit GDK X Window calls.
The GDK_WINDOWING_X11 build-time macro check is not enough as GDK can be
built with both X11 and Wayland backends. We need to add a runtime check
of the type of display.
2020-06-21 12:54:13 +02:00
9545406034 NEWS: update.
Maybe we should also add some details about the API update, but so much
has been changed already. Maybe later…
2020-06-21 12:45:56 +02:00
2ae1ab505a app: [Wayland] fix invalid preedit range in text tool.
So it seems that pango_attr_iterator_range() could return G_MAXINT for
a Pango attribute when it is at the end of the preedit string. Looking
at Pango code, I see they initialize the attribute end property to
PANGO_ATTR_INDEX_TO_TEXT_END (G_MAXUINT), later clamped to G_MAXINT by
pango_attr_iterator_range(). So I guess for the specific case where we
are at the text end, it is normal. Only weird thing is that this didn't
happen at all on X11, only in Wayland.

So let's do our own pre-check. Also double the check by adding a UTF-8
validation.

This fixes preedit text not being displayed and the following warning:

> Gtk-CRITICAL **: 12:31:25.118: gtk_text_buffer_emit_insert: assertion 'g_utf8_validate (text, len, NULL)' failed

Even worse, this was potentially an out-of-range reading, though
fortunately checked early enough.
2020-06-21 12:35:22 +02:00
2d3e5075a1 Update Swedish translation 2020-06-18 23:20:45 +00:00