Commit Graph

45927 Commits

Author SHA1 Message Date
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
eccf64cf30 Updated Italian translation 2020-06-18 16:34:33 +02:00
Ell
887d6a3670 app, themes: fix display-shell statusbar height
In gimp.css, don't set a minimum height for GimpDisplayShell
statusbars.  Instead, in GimpStatusbar, set the widget's minimum
height to the maximum of its children's natural heights.  Note that
we have to do this manually, instead of using a size group, since
GtkSizeGroup::ignore-hidden is deprecated (and nonfunctional) in
GTK3.
2020-06-18 13:12:29 +03:00
4280f7dc9b Update Ukrainian translation 2020-06-18 09:27:52 +00:00
4510e75864 Fix minor typo: entred -> entered 2020-06-18 09:09:55 +00:00
76c735a722 Update Spanish translation 2020-06-18 06:42:04 +00:00
f1eec22047 Update Spanish translation 2020-06-18 06:41:27 +00:00
4761fc422f Update Ukrainian translation 2020-06-18 05:51:09 +00:00
1ceb0dc8ad Fixes to Catalan translation 2020-06-17 23:57:43 +02:00
45ce68fe15 plug-ins: change the "compose-type" default values to upper case
just for consistency.
2020-06-17 21:56:31 +02:00
4e9227e5d3 plug-ins: make sure "decompose-type" in decompose.c is upperacse
because the string combo box in the dialog is case sensitive.
2020-06-17 21:56:31 +02:00
54b5faeefb plug-ins: port file-xmc.c to GimpProcedureConfig and prop widgets 2020-06-17 21:56:31 +02:00
0d56bbb745 plug-ins: change "comment" arguments to "gimp-comment"
so they continue to be handled automatically.
2020-06-17 21:56:31 +02:00
48b04e7257 libgimp: implement argument sync in GimpProcedureConfig
In begin_run() and end_run(), sync string properties set to
GIMP_ARGUMENT_SYNC_PARASITE with image parasites of the same name,
exactly the way "gimp-comment" was handled by begin_export() and
end_export(). Remove the "gimp-comment" handling code from
begin_export() and end_export().
2020-06-17 21:56:31 +02:00
5a235fae69 libgimp: add the concept of "argument sync" to GimpProcedure
which can be set to GIMP_ARGUMENT_SYNC_NONE (the default) or
GIMP_ARGUMENT_SYNC_PARASITE, which indicates that the argument should
be synced with an image parasite of the same name.
2020-06-17 21:56:31 +02:00
896286279b libgimpconfig: cache the "gegl-property-keys" Quark
in gimp_config_param_spec_duplicate().
2020-06-17 21:56:31 +02:00
b814ea95a1 libgimp: return the added GParamSpec from all GimpProcedure...
...functions which add arguments or return values.

So code can do stuff with them without an additional lookup call.
2020-06-17 21:56:31 +02:00
bcebc9f6e2 Update Swedish translation 2020-06-17 18:00:53 +00:00
Ell
a5535dc9c9 themes: improve GimpColor{Notebook,Scales} spin-button style 2020-06-17 10:40:42 +03:00
Ell
f182442206 app, themes: improve GimpSpinScale styling 2020-06-17 10:40:42 +03:00
f4f1bb3af4 Update Swedish translation 2020-06-16 20:54:15 +00:00
Ell
9809939e25 app, themes: use compact style for GimpSpinScale
Align GimpSpinScale with gimp-2-10, by modifying its appearance and
behavior to match the 2.10 compact style, fixing interaction along
the way.  Unlike 2.10, there is no option to revert to the old
style.
2020-06-16 19:40:43 +03:00
Ell
da73b6b310 themes: remove entry/spin-button min-height
in System/gimp.css, remove the 2.5em min-height for entries/spin-
buttons, since it makes them needlessly high for no obvious reason.
2020-06-16 19:40:43 +03:00
c6f2c8bda5 Updated Italian translation 2020-06-16 16:55:16 +02:00
ad0e34fb0c Update Swedish translation 2020-06-15 21:02:15 +00:00
66a952df9f app: check if display is X11 before gdk_x11_display_get_user_time().
Fixes:
> GLib-GObject-WARNING **: 20:51:24.156: invalid cast from 'GdkWaylandDisplay' to 'GdkX11Display'
2020-06-15 21:36:54 +02:00
1fb754d87b Updated Italian translation 2020-06-15 15:46:59 +02:00
Ell
6a01bf2df2 Issue #5219 - Color>Info>Export histogram counts pixels twice
gimp_histogram() takes an inclusive range -- the plug-in has been
counting non-zero pixels twice.
2020-06-14 17:04:30 +03:00
68ec9c70f5 Update Polish translation 2020-06-14 13:42:27 +02:00
c0367f2dc2 Update Ukrainian translation 2020-06-14 06:59:11 +00:00
f0281e1421 app: remove the "Keys" list in the Input Device editor.
After discussion with Carlos Garnacho, we came to the conclusion this
list is a useless feature. Basically what we call "input device" here is
pretty much "pointer device" only. We are indeed explicitly ignoring any
device identified as GDK_SOURCE_KEYBOARD, leaving us only with various
types of pointer devices (and pads actually, which maybe we should also
ignore in fact).
Such devices don't usually come with "keys", only "buttons". And in rare
cases of very weird devices coming with both buttons and keys, they will
usually identify as 2 separate devices (a pointer device and a keyboard
one) anyway, in Carlos experience, so we would still wouldn't have
access to the real keys anyway.

Moreover these keys were not only useless, but also sometimes confusing,
because some pointer devices would actually list keys, but then if you
tried to map some key event, it would not do anything (as they are not
real keys). The tablets I was testing with were such, reporting hundreds
of keys which do nothing and only confused the hell out of me.
Carlos says it probably means that the tablet drivers send bogus data of
key descriptions (so a bug in the driver, harmless yet still confusing).

So let's just get rid of this key list as our tablet expert says these
are bogus and let's see if anyone ever reports feature loss of some
extra weird pointing device which one would have used in GIMP while
mapping keys. Note that I leave the concept of keys inside
GimpDeviceInfo for now (only removing the widget part listing these)
just in case we realize we have to bring these back (less chance of code
conflict in the future when reverting the small GUI commit). But chances
are high that we will have to clean GimpDeviceInfo too and just get rid
of key code there.
2020-06-13 21:40:06 +02:00
4def457c63 app: Input Devices "Reset" button should actually reset to defaults.
In other dialogs, it is not a revert to how it was before opening the
dialog, but a reset to default settings.
To just revert to dialog opening values, we can just use "Cancel" and
reopen the dialog (a bit cumbersome, but not something done often
anyway).

Currently what "Reset" does is to set back the device mode and any
customized axe curve. It doesn't touch customized keys, but these will
disappear anyway in a further commit.
2020-06-13 20:36:37 +02:00
cef7ecca27 build: add libwmf patch from libwmf repository to prevent issue #4061 2020-06-13 17:03:39 +02:00
0ce3798a42 build: add libwmf patch from libwmf repository to prevent issue #4016 2020-06-13 15:04:24 +02:00
6f5e4a8e3d Update Catalan translation 2020-06-12 20:54:09 +02:00
Ell
f9cc239f2c data: clean up "Acrylic 05" brush
Clean up faint pixels in the "Acrylic 05" brush, which produce a
badly-thresholded mask with the Pencil tool.  See issue #5180.

Thanks to Sevenix for the fixed brush!
2020-06-12 18:20:09 +03:00
Ell
c4a201eaf4 Issue #5208 - paint brush is broken when aspect ratio is set to negative
Fix horizontal downscaling of brush mipmap levels with odd width.
We'd previously fail to skip the last pixel of each input row,
which isn't included in the output when the width is odd, causing
subsequent output rows to be shifted to the right.
2020-06-12 17:30:28 +03:00
6d74c57be7 Update Basque translation 2020-06-12 06:34:20 +00:00
c8d5d6b1d3 Update Basque translation 2020-06-12 06:13:03 +00:00