Commit graph

42393 commits

Author SHA1 Message Date
Rodrigo Lledó
c000c7a8a2 Update Spanish translation 2019-02-11 07:51:36 +00:00
Rodrigo Lledó
dfe1dbe0ad Update Spanish translation 2019-02-11 07:49:19 +00:00
Ell
4a7988b9fa Issue #2935 - GIMP 2.10 - options hidden in filter dialogs
gtk2 doesn't propagate the child requisition to the scrolled-window
requisition, so we have to do it manually.
2019-02-10 17:53:16 -05:00
Balázs Úr
c1e84c494d Update Hungarian translation 2019-02-10 17:37:22 +00:00
Ryuta Fujii
2465aecb4f Update Japanese translation 2019-02-10 15:46:38 +00:00
Ryuta Fujii
b7c1664273 Update Japanese translation 2019-02-09 13:02:04 +00:00
Marco Ciampa
d501a28807 Updated Italian translation 2019-02-09 01:18:28 +01:00
Piotr Drąg
d115e1d777 Update Polish translation 2019-02-08 20:36:16 +01:00
Ell
0f727e4f2f libgimpwidgets: in GimpChainButton, emit "toggled" signal when "active" changes
In GimpChainButton, emit the "toggled" signal whenever the chain
button's "active" property changes, either due to user interaction,
or programatically.  Previously, it would only get emitted when the
button was actually clicked.

In particular, this fixes an issue where the aspect ratio of a
coordinates size-entry won't get updated when its chain button got
toggled programatically, as can happen with the scale tool.

(cherry picked from commit c0c055b4e9)
2019-02-08 08:22:45 -05:00
Jehan
d815f355bb Issue #2922: Some sentences appear untranslated.
Again some missing context when requesting the strings (while they were
declared with context in static NC_()).
Also some mixup with some zoom actions strings declared with different
context in the same GimpEnumActionEntry.

(cherry picked from commit 6c5b6c6135)
2019-02-08 13:33:47 +01:00
Jehan
95be8d0769 po: fix msgctxt s/view-action/view-zoom-action/ for 5 strings.
Similar to master commit cb025cec64,
except that I just redid the search-replace as there were annoying
conflict merge (was easier to just redo massive search-replace).
2019-02-08 13:30:39 +01:00
Jehan
7067c3add3 Issue #2922: Some sentences appear untranslated.
(cherry picked from commit 60c334a779)
2019-02-08 11:44:51 +01:00
Balázs Meskó
7909409a03 Update Hungarian translation 2019-02-07 23:33:44 +00:00
Jehan
66803bc2b3 po: fix the context (msgctx) for 2 strings.
See commit f8f3a74971.
The context change was basically a bug fix, and nothing changed in the
original string, nor its actual GUI context/usage. Therefore there is no
need to invalidate the translations (mark it "fuzzy", which would be
what would happen automatically after this change) for the 43 languages
which already translated these. Let's just search-and-replace all the po
files with the correct context.

For the record, I got the green light from several translators on
gnome-i18n ML so let's fix. :-)

(cherry picked from commit 7a5e5be35e)
2019-02-07 18:42:53 +01:00
Jehan
5796cc46e4 app: improve line art bucket fill by filling unsignificant areas.
The line art imaginary segments/splines are not added when they create
too small zones, unless when these are just too small ("unsignificant").
Why the original algorithm keeps such micro-zones is because there may
be such zones created when several splines or segments are leaving from
a same key point (and we don't necessarily won't to forbid this). Also
we had cases when using very spiky brushes (for the line art) would
create many zones, and such micro-zones would appear just too often
(whereas with very smooth lines, they are much rarer, if not totally
absent most of the time).
Also it is to be noted that the original paper would call these
"unsignificant" indeed, but these are definitely significant for the
artists. Therefore having to "fix" the filling afterwards (with a brush
for instance) kind of defeat the whole purpose of this tool.

I already had code which would special-case (fill) 1-pixel zones in the
end, but bigger micro zones could appear (up to 4 pixels in the current
code, but this could change). Also I don't want to use the "Remove
Holes" (gimp:flood) operation as I want to make sure I remove only
micro-holes created by the line art closure code (not micro-holes from
original line arts in particular).

This code takes care of this issue by filling the micro-holes with
imaginary line art pixels, which may later be potentially bucket filled
when water-filling the line art.

(cherry picked from commit 72092fbdbc)
2019-02-07 18:42:46 +01:00
Jehan
1825392dbe Issue #2920: Dilate and Erode filters' tooltips are untranslatable.
Wrong message contexts!

(cherry picked from commit f8f3a74971)
2019-02-07 18:33:01 +01:00
Ell
f5e652d762 app, pdb: use compat formats for brushes/patterns in plug-ins
Plug-ins are not prepared to handle high-precision brushes/
patterns, even when they're otherwise aware of high-precision
drawables, so make sure to always use compat formats when
communicating brush/pattern data to plug-ins.

Allowing plug-ins to handle high-precision brush/pattern data would
require some additional API.

(cherry picked from commit 82c449496e)
2019-02-07 09:19:27 -05:00
sabri ünal
57b81c424b 2 sentences are marked as translatable.
These sentences are in use on "Preferences - Interface - Help System" page.

(cherry picked from commit 1853770660)
2019-02-07 14:56:54 +01:00
Jehan
29706cdc48 libgimpbase: style cleanup of gimpreloc.c
No code change, only indentation fixed and opening braces on newline, as
per our style guidelines.

(cherry picked from commit 757b8bba7d)
2019-02-07 14:56:26 +01:00
Jehan
6645cc7ba5 app, libgimpbase: --enable-relocatable-bundle replaces --enable-binreloc
Older --enable-binreloc configure option had basically the same purpose
as the newer --enable-relocatable-bundle, though the old binreloc was
only used for gimpenv.c code.
As a consequence, commit 10ce702188 was still not working fine since
gimp_installation_directory_file() also need binreloc enabled (to be
actually relocatable).

Let's get rid of this whole mess, by implying we want binreloc code to
be used when --enable-relocatable-bundle is ON. We don't need the
m4macros anymore, since AM_BINRELOC was basically just checking that
`/proc/self/maps` was present. But anyway being present at compile time
does not mean it will be at runtime (nor the opposite). So this test is
not that useful. The binreloc code will anyway fallback gracefully to
the non-binreloc code (i.e. trying to use build-time install paths) if
the procfs is lacking at runtime.

(cherry picked from commit 4d84c1d7ee)
2019-02-07 14:56:26 +01:00
Ell
a335eb0e6e app: avoid unnecessary calls to gimp_temp_buf_data_clear()
Avoid unnecessary calls to gimp_temp_buf_data_clear() in various
places, where either the entire buffer is being written to, or most
of it is, only requiring clearing the edges.

(cherry picked from commit 9d19e804ed)
2019-02-06 16:51:07 -05:00
Ell
1e0530e730 app: small fix in gimpbrushcore-kernels.h
(cherry picked from commit cbe40000f5)
2019-02-06 16:51:06 -05:00
Ell
d39634a914 Issue #2372 - Reduced quality of the Parametric brush in 2.10
Promote the precision of generated brushes to 32-bit float, and
modify brush preview generation, and gimpbrushcore-loops, to handle
float brushes.  This avoids posterization in large brushes.

Note that non-generated brushes are still uint8.

(cherry picked from commit 8ef1113dee)
2019-02-06 14:30:56 -05:00
Ell
8f31f8fa3c app: add gimp_temp_buf_{lock,unlock}()
In GimpTempBuf, add gimp_temp_buf_lock() and gimp_temp_buf_unlock()
functions, which lock/unlock the buffer for data access.  Unlike
gimp_temp_buf_get_data(), which returns a direct pointer to the
buffer's data, the new functions take a format parameter and may
return a temporary buffer, allowing the buffer to be accessed using
an arbitrary format.

(cherry picked from commit 12dde445c4)
2019-02-06 14:30:55 -05:00
Ryuta Fujii
d4e87e4d51 Update Japanese translation 2019-02-06 13:36:59 +00:00
Ryuta Fujii
99c59d92f3 Update Japanese translation 2019-02-06 13:07:58 +00:00
Ell
c9f4735669 libgimp: avoid libgimp tile-cache in the plug-in tile backend
In GimpTileBackendPlugin, avoid storing read/written tiles in the
libgimp tile-cache, since caching is already done by GEGL.

(cherry picked from commit 47dcd4b93a)
2019-02-05 17:26:23 -05:00
Rodrigo Lledó
17f355e9f3 Update Spanish translation 2019-02-05 14:22:37 +00:00
Rodrigo Lledó
f936089bcb Update Spanish translation 2019-02-05 14:21:34 +00:00
Ell
8878ff5f04 app: in GimpRotateTool, improve fuzzy comparisons
(cherry picked from commit b002f20412)
2019-02-05 04:39:11 -05:00
Ell
a771662420 libgimpwidgets: add gimp_chain_button_{get,size}_icon_size() to gimpwidgets.def
(cherry picked from commit 0714510802)
2019-02-05 03:49:51 -05:00
Ell
b5caa2ea2e po-python: add spyro_plus.py copy to POTFILES.skip
(cherry picked from commit 1b2ec2961c)
2019-02-05 02:50:30 -05:00
Balázs Meskó
d368fabf8e Update Hungarian translation 2019-02-04 22:55:15 +00:00
Ell
da6086636b app: in GimpTransformGridTool, allow linking forward/backward transforms
Add a GimpTransformGridTool::matrix_to_info() virtual function,
which should extract the tool-specific transformation parameters
given a transformation matrix, and the old parameter set (which is
needed in some tools, to derive the parameters that aren't encoded
in the matrix, such as the pivot point).  The transformation matrix
can be any combination of matrices calculated by the tool, and
their inverses.  Subclasses should only implement this function if
every such matrix can be mapped back to transformation parameters.
This is currently the case for all the transform-grid tools, except
for the shear tool (since it only supports shearing along one of
the horizontal or the vertical directions, however, the combined
matrix may require shearing in both directions).

When a transform-grid tool implements this function, show a chain-
button between the two transform-direction radio-buttons in the
tool options.  When the chain-button is linked, whenever the
transform corresponding to the active direction is modified, adjust
the transform corresponding to the non-active direction such that
the overall transform remains the same.

One notable workflow that this enables is transforming a layer
while adjusting a different area than its boundary, by first
defining the area while the transform-directions are linked, and
then transforming the area while the transform-directions are
unlinked.

(cherry picked from commit 39e23267f7)
2019-02-04 16:50:41 -05:00
Ell
ca06990828 app: in GimpTransformGridTool, allow simultaneous forward and backward transforms
In GimpTransformGridTool, allow performing simultaneous forward
(normal) and backward (corrective) transforms, by having each
transform direction operate on an independent set of parameters.
In other words, whereas the transform-grid tools previously had a
single transform, which could be applied either normally or
correctively using the "direction" tool-option, they now have two
independent transforms, one applied normally and the other
applied correctively, which are toggled using the "direction"
option.  The overall transform is the combination of the backward
transform, followed by the forward transform.

Another way to think about it, is that the tool transforms a source
shape into a destination shape.  The source shape is defined by the
backward transform, and the destination shape is defined by the
forward transform.  Wherewas previously only one of these shapes
could be controlled (the other shape always being the item bounds),
it's now possible to control both shapes in a single transform.
The next commit will allow modifying both shapes simultaneously,
making this even more useful.

Note that since both transforms start off as the identity, using
only one of the transform directions has the same behavior as
before.

(cherry picked from commit de8e81f81f)
2019-02-04 16:50:41 -05:00
Ell
b869f1bf5a libgimpwidgets: add GimpChainButton::active property
... which corresponds to the button's toggle state.

(cherry picked from commit 9c3f150e25)
2019-02-04 16:50:41 -05:00
Ell
fcfe6997cd libgimpwidgets: add GimpChainButton::icon-size property
... and corresponding gimp_chain_button_{get,size}_icon_size()
functions, which control the chain-button's icon size.

(cherry picked from commit 8d6c7e42bf)
2019-02-04 16:50:36 -05:00
Ell
3ad945c3c8 app: add GimpTransformToolClass::undo_desc field
Add an undo_desc field to GimpTransformToolClass, which subclasses
should set to the tool's default undo description.  Provide a
default implementation for the get_undo_desc() vfunc, which returns
(a copy of) undo_desc.  This simplifies transform tools that have a
static undo descrption, as well as provides a fallback when a
detailed undo description can't be generated (not currently
relevant, but will be used in the next commit).

(cherry picked from commit d549440650)
2019-02-04 16:48:57 -05:00
Ell
b0ab2b6564 app: improve rotate-tool undo description
When rotating an item around its center using the rotate tool,
i.e., if the pivot point hasn't been moved, don't include the pivot
coordinates in the undo description.

(cherry picked from commit 44c8a1f274)
2019-02-04 16:48:56 -05:00
Ell
054d441a8d app: improve measure-tool undo description
When straightening an item using the measure-tool, include the
orientation and angle in the undo description.

(cherry picked from commit b95bf3fb93)
2019-02-04 16:48:56 -05:00
Ell
b820d50827 app: add GimpToolCompass::effective-orientation property
In GimpToolCompass, add a read-only "effective-orientation"
property, which returns the actual orientation of the compass; in
particular, if the "orientation" property is set to AUTO,
"effective-orientation" returns HORIZONTAL or VERTICAL, depending
on the current compass direction.  In 3-point mode, the property
always returns AUTO.

(cherry picked from commit 40c0913178)
2019-02-04 16:48:55 -05:00
Ell
6495b6d023 app: fix CRITICALs in GimpMeasureTool
In GimpMeasureTool, don't try to access the "straighten" button
when halting the tool if it's NULL, which can happen when the
measure tool is selected upon startup, but is changed before its
tool-options GUI is constructed.

(cherry picked from commit 7fc5698f32)
2019-02-04 16:48:55 -05:00
Ell
d6bb1efd77 app: in gimp_transform_matrix_generic(), apply matrix even if invalid
In gimp_transform_matrix_generic(), apply the resulting matrix even
if the transformation is invalid, since GimpGenericTransformTool
relies on the matrix to properly update the transform-grid widget.

(cherry picked from commit 59ef222c7f)
2019-02-04 16:48:54 -05:00
Ell
d74df14766 app: in GimpTransformGridTool, fix layer hiding
In GimpTransformGridTool, when the "show-preview" tool-option
changes, don't take the transform validity into account when
deciding whether to hide the current layer -- it should only affect
the visibility of the preview, not the layer.

(cherry picked from commit 7ed512040e)
2019-02-04 16:48:54 -05:00
Ell
08c540ebc1 app: in GimpTransformGridTool, remove flip-tool hack
The flip tool is not a subclass of GimpTransformGridTool; this is
a leftover from GimpTransformTool.

(cherry picked from commit 3ebda874b5)
2019-02-04 16:48:53 -05:00
Jehan
32c185c7ee Issue #2906: Icon Theme bar strings have no translations. 2019-02-04 22:19:58 +01:00
Rodrigo Lledó
dc431bbcc1 Update Spanish translation 2019-02-04 10:42:45 +00:00
Michael Natterer
79454e2bf3 app: in the prefs dialog, warn that OpenCL support is experimental
(cherry picked from commit 7998a27b8b)
2019-02-04 10:40:22 +01:00
Michael Natterer
6be6ea0e92 Issue #2898 - Gegl Operations - Color Wrap does not fit the screen on...
...1920*1980 resolution

In GimpOperationTool, make the generated GUI scrollable if it is
higher than half the monitor's workarea. This is meant as a last
resort for generated GUIs that do not have a custom constructor that
makes them usable using better layouts.

(cherry picked from commit b85d7c2334)
2019-02-03 18:15:48 +01:00
Michael Natterer
b9a0bd4d62 libgimpbase: add gimp_installation_directory_file() to gimpbase.def
(cherry picked from commit c71a887b08)
2019-02-03 14:56:15 +01:00