Commit Graph

45889 Commits

Author SHA1 Message Date
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
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