Commit Graph

46917 Commits

Author SHA1 Message Date
Jordi Mas 5115fd8db9 Update Catalan translation 2021-04-25 19:06:54 +02:00
Jordi Mas 3950cc2c83 Update Catalan translation 2021-04-25 19:02:46 +02:00
Anders Jonsson 829b0da61e Update Swedish translation 2021-04-25 16:35:17 +00:00
Ian Martins c97cf30e6e pdb: add a PDB compat procedure for median-blur
(cherry picked from commit eb9eec4acb)

Reviewer note: with re-generated C files for the updated PDB in the main
branch.
2021-04-25 15:56:41 +02:00
Jehan b7a06795d6 desktop: fix release date (wrong month! Oups!).
Also put the news date to Wednesday because it's not ready yet, and
anyway we'll have to wait for mirrors' sync.
2021-04-25 15:46:28 +02:00
Jehan 423a6fe6d6 NEWS: update. 2021-04-25 13:30:38 +02:00
Jehan d977876363 libgimp: add missing API docs-comment for gimp_procedure_new_arguments() 2021-04-25 13:10:49 +02:00
Ngọc Quân Trần 3773490436 Update Vietnamese translation 2021-04-25 08:20:45 +00:00
Yuri Chornoivan b25a8c5beb Update Ukrainian translation 2021-04-25 07:50:26 +00:00
Jordi Mas 6b1ed7d722 Update Catalan translation 2021-04-25 07:14:10 +02:00
Jordi Mas 0c951e62da Update Catalan translation 2021-04-25 06:54:18 +02:00
Anders Jonsson 61a95a8cc9 Update Swedish translation 2021-04-24 23:08:41 +00:00
Jehan c8020c20a5 app: don't print a NULL insensitive action reason.
Print an empty string itself, otherwise it actually displays "(null)".
And anyway it's not clean code to use a NULL pointer in a printf format.
2021-04-24 23:26:33 +02:00
Jehan ef2402bf8e app, libgimp, pdb, plug-ins: allow pasting multiple full layers.
When a selection exists, we are copying then pasting the selection
contents. In particular, with multi-layer selection, it means pasting a
merged result of the selected layers (like a sample merged but limited
to selected layers).

Yet when no selection exists, with a single layer selected, a cut in
particular would remove the layer fully, then a paste would copy it
elsewhere (in the same image or even on a different image). This was
still working, but not with multiple layers. This is now fixed and we
can now copy/cut then paste several layers (without merge), which is
sometimes a very practical way to move layers (sometimes simpler than
drag'n drop, especially between images).

As a consequence, the PDB function gimp_edit_paste() now also returns an
array of layers (not a single layer).
2021-04-24 23:22:58 +02:00
Jehan 11e1f6ea5e app: fix out-of-gamut representation (pink triangle).
The small pink triangles were completely broken, i.e. displayed at the
wrong coordinates.
2021-04-24 19:32:13 +02:00
Jacob Boerema 165b50abcc plug-ins:fix #6624 metadata viewer default window size is too small
Let's increase the default size of the metadata viewer a bit.
Ideally we would add some logic to determine the width of
the first column since that one currently depends on the
length of the longest tag. However for now this change
will be enough for most cases.
2021-04-24 12:45:52 -04:00
Jacob Boerema ed35579861 script-fu: fix #6741 Round Corners script fails to work on layer masks
The round corners script was assuming that the drawable always
was a layer, which is incorrect when a layer mask is selected.

We fix this by always requesting the active layer instead of
active drawable.

We also enable this script for RGB and GRAY with alpha
channel. Although it might not always make sense to
use this script when an alpha channel is present, there
can be use cases where it is perfectly fine.

So let the designer decide if this script is suited or not
instead of GIMP making that judgement.
2021-04-24 12:41:41 -04:00
Jehan 69fdcf5d3f plug-ins: use g_mkdir() for generic cross-platform code.
This fixes the following error when building for Windows:

> error: too many arguments to function ‘mkdir’

On Windows, mkdir() is deprecated, it is an alias for _mkdir() which
doesn't have a mode parameter. The GLib version duplicates the POSIX
signature and is cross-platform (mode is simply ignored on Windows).
2021-04-24 17:03:43 +02:00
Jehan 472eec0bfb NEWS: update. 2021-04-24 15:51:36 +02:00
saul 11906fa82c plug-ins: Add 'dir-make' procedure to Script-fu.
Closes: GNOME/gimp#541

Reviewer note: thanks to Stanislav Grinkov for cleaning up and reworking
a bit the patch, such as renaming the procedure to dir-make, as per
Kevin Cozens' review.
2021-04-24 15:09:24 +02:00
bootchk c6fde64815 GIMP-CRITICAL: gimp_marshal_VOID__OBJECT_STRING_STRING: assertion 'n_param_values == 4' failed 2021-04-24 15:00:42 +02:00
Jehan d6dac25579 Issue #5008: Always true condition (i>=0) inside fill_inverse_cmap_gray.
Removing useless condition, add a g_return_if_fail() assertion for the
only (impossible unless bug) case which we don't expect. Also set
default mindist to G_MAXLONG instead of a magic number (which was ok now
but might become a problem if some day colormap allowed more than 16-bit
per channel colors).
Finally break when we reach a distance of 0 since we won't get lower
anyway, so better stop early.

Thanks to Rafał Mikrut and Øyvind Kolås for code commenting.
2021-04-24 14:48:22 +02:00
Jehan c0e605ef96 app: fix an assertion when converting grayscale images to indexed.
We cannot just compare the drawable format with the model-type specs of
the color model. We need to include the space now.
In my case, some random screenshot converted to gray then indexed would
assert because the format is "Y' u8-space-gray-sRGB" (or for layers with
alpha: "Y'A u8-space-gray-sRGB"), hence indexed conversion failed and
ended up dark.
2021-04-24 14:12:57 +02:00
Jordi Mas 1fcb2a3d68 Update Catalan translation 2021-04-24 11:59:24 +02:00
Yuri Chornoivan 6a1a0d51bb Update Ukrainian translation 2021-04-24 06:31:36 +00:00
Anders Jonsson 1d0b925d55 Update Swedish translation 2021-04-23 21:01:54 +00:00
Jacob Boerema cad6273fed plug-ins: fix #6755 DDS RGB10A2 has Red and Blue swapped.
Looking at the documentation it is indeed red that should go
in the lowest bits and blue in the highest bits so just
reverse our code for red and blue.

We also update the version of our GIMP DDS plug-in,
this way we can catch and correct RGB10A2 images
written by older versions of our plug-in and correct
them.
2021-04-23 14:31:50 -04:00
Jehan 13a02aea23 app: append insensitive reason to GimpAction proxy tooltip.
With my previous commit, I improved the search action display and search
algorithm (which was returning wrong results), but we had lost showing
the non-sensitive reason in menu item tooltips. This fixes it, by
actually appending the reason, but only in the end, on the GtkWidget
tooltip (not in the action's tooltip itself).
2021-04-23 19:48:37 +02:00
Jehan 811d356953 app: GimpAction now has a "reason" parameter to explain being disabled.
In some cases, in particular for actions generated from plug-in
procedure right now, we were displaying the reason of the insensitivity
(typically right now, only the drawable type is cited). This was done by
appending the reason to the tooltip, separated by 2 newlines, which
resulted in extra ugly design, no nice way to style this info directly
(with pango for instance if the widget display allows it, or on a
separate info widget in a possible future, or whatnot).

Also it would mean that the action search could match a disabled action
by mistake if a search word happens to be in the reason message.

This improves the situation with the following changes:
* gimp_action_set_sensitive() now takes an optional reason string to set
  the reason message.
* Same for gimp_action_group_set_action_sensitive().
* gimp_action_get_sensitive() returns an optional reason string.
* gimp_procedure_get_sensitive()'s tooltip return value now becomes a
  reason (it won't contain anymore the tooltip and the reason
  concatenated, only the reason for separate processing).
2021-04-23 19:43:30 +02:00
Anders Jonsson e1e4818ad5 Update Swedish translation 2021-04-22 21:07:33 +00:00
Luna Jernberg 046d420996 Update Swedish translation 2021-04-22 20:40:42 +00:00
Povilas Kanapickas a8b258cd84 app: Implement canvas support for touchpad gesture zoom by pinch 2021-04-22 17:45:32 +00:00
Povilas Kanapickas 51d1ab9bce libgimpwidgets: Introduce GIMP_ZOOM_PINCH
This zoom mode is handled pretty much the same as GIMP_ZOOM_SMOOTH
except that we do not apply adjustments for the scaling delta. Pinch
zooming is ultimately a different physical activity than smooth
scrolling and users likely expect different sensitivity.
2021-04-22 17:45:32 +00:00
bootchk 877d585271 Partial fix 5426. Lets old scriptfu script call old name gimp-image-is-valid,
mapped to new PDB procedure gimp-image-id-is-valid (same signature), for example.

Edit a few comments in new code.

Style changes, no logic change.
2021-04-22 11:27:22 -04:00
bootchk 34150ddda7 Use g_logging and migrate functions for author's errors to separate source file.
Eliminate conditional compile for debugging.
2021-04-22 11:01:43 -04:00
Rodrigo Lledó a0f89a9d4c Update Spanish translation 2021-04-22 08:31:44 +00:00
Anders Jonsson 5bb7f2c7d4 Update Swedish translation 2021-04-21 20:12:57 +00:00
Asier Sarasua Garmendia 2cb0d0a220 Update Basque translation 2021-04-21 20:03:38 +00:00
Asier Sarasua Garmendia 33b267ba12 Update Basque translation 2021-04-21 20:02:16 +00:00
Jacob Boerema 6ec20e6ed0 plug-ins: adapt file-openraster to API changes.
I only fixed the changes that made it fail.
I have not updated it to the sensitivity API.
2021-04-21 13:04:46 -04:00
Jehan 65e10faf50 plug-ins: change non-existing brush.
Fixes:
> Calling error for procedure 'gimp-brush-get-pixels':
> Brush 'Circle (03)' not found

The data/brushes/Circle-3.vbr brush doesn't exist since commit
7aa12175a4 in 2012 as far as I can see.
2021-04-21 17:50:24 +02:00
lloyd konneker 34c1dbde13 Fix #6676 brush select crash, pass GimpArray->data instead of GimpArray*
Same issue for brush, pattern, gradient
2021-04-21 15:38:23 +00:00
Jehan 68dcb4b421 app: fix sending signals to finalized object.
Fixing:

> GLib-GObject-WARNING **: 01:43:13.747: instance with invalid (NULL) class pointer
> GLib-GObject-CRITICAL **: 14:15:37.327: g_signal_emit_valist: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

When changing brushes through tool options. Thanks to ankh for noticing
this.
2021-04-21 14:19:05 +02:00
Yuri Chornoivan 997c12a304 Update Ukrainian translation 2021-04-21 09:59:28 +00:00
Ngọc Quân Trần 6068665b25 Update Vietnamese translation 2021-04-21 07:05:01 +00:00
Ngọc Quân Trần 5c1230574d Add Vietnamese translation 2021-04-21 06:42:54 +00:00
AmanMatta 6e27c46b5f Update Makefile.am 2021-04-21 01:35:26 +02:00
Jehan 90b3c4e547 NEWS: update. 2021-04-21 00:48:50 +02:00
Jehan 88e6a8ec83 devel-docs: update the removed_functions table. 2021-04-21 00:40:28 +02:00
Jehan 3f9184f576 app, pdb: plug-in-autocrop-layer() multi-layer aware.
This PDB procedure will now crop all selected layers relatively to the
input drawable.
2021-04-21 00:13:24 +02:00