Commit Graph

42527 Commits

Author SHA1 Message Date
Ell
d0a3d81c4a app: improve gimp_gegl_mask_combine_rect()
Simplify the code, and add support for CHANNEL_OP_INTERSECT.

(cherry picked from commit 8a6e1c907d)
2019-03-20 16:27:55 -04:00
Ell
15e8b53f0c app: convert gimp-gegl-mask-combine to C++
... in preparation for next commits.

(cherry picked from commit 5198d3c32d)
2019-03-20 16:27:55 -04:00
Ell
2a2ad4324d app: add gimp_babl_format_change_{component_type,linear}()
... which change a format's component-type/TRC, without otherwise
affecting it.
2019-03-20 16:27:55 -04:00
Ell
5c70b827d2 app: add gimp_babl_is_bounded()
... which takes a GimpPrecision, and determines if its values are
bounded to the [0,1] range (which is currently only true for
integer precisions).

(cherry picked from commit d7f12c9d26)
2019-03-20 16:27:55 -04:00
2675e944e3 app: make gimp_prop_gui_chain_toggled() less error-prone.
Don't assume that "toggled" signal means that toggle status actually
changed.

Though issue #3133 got fixed with my previous commit, let's make sure we
never create several GBinding for the same GimpChain by always checking
existence of a previous one after a "toggled" signal.
Also only create a GBinding object if one doesn't already exist.

(cherry picked from commit 9042e85f3c)
2019-03-20 15:12:25 +01:00
2ebf56850e Issue #3133: Gimp freezes after selecting a filter preset and...
... clicking a GimpChain.
Since commit c0c055b4e9, gimp_chain_button_set_active() emits the
"toggled" signal. There is no need to emit it separately from
GimpOperationTool when setting presets with
gimp_operation_tool_set_config().

In particular, since the "toggled" signal was even sent unconditionnally
here, our code was ending creating several GBinding for the same 2
adjustments, which was creating an infinite loop.

(cherry picked from commit 03dc24455a)
2019-03-20 15:12:19 +01:00
199f9f13a5 app: fixes g_object_unref: assertion 'G_IS_OBJECT (object)' failed.
"binding" data can be set to NULL. Do not assume it is a proper object.

Also I was tempted to use g_object_set_data() to simply free the
GBinding object on setting a new data, but such object will also be
freed when the widget is destroyed by default. So that would also end up
in double destruction. Instead just keep current logics.

This CRITICAL was reported in #3133 but this is not the main bug.

(cherry picked from commit af6760b3c9)
2019-03-20 15:12:13 +01:00
66c47ee23f plug-ins: do not needlessly free/malloc() buffer of same size.
In an animated WebP, chances that layers/frame have the same size is
high. It is uneeded to free then malloc again a buffer at each frame,
unless we need more allocated memory.
This is probably not so significant, but still feels nicer.

(cherry picked from commit 0b68ce8182)
2019-03-19 12:54:13 +01:00
4721643176 Update Marathi translation 2019-03-18 16:29:18 +00:00
520b4fbf18 Update Marathi translation 2019-03-18 16:27:13 +00:00
c15069797e Update Marathi translation 2019-03-18 11:12:37 +00:00
2a83ce9abe Update Marathi translation 2019-03-18 11:11:30 +00:00
9cf206f350 Update Marathi translation 2019-03-18 10:38:01 +00:00
05e9bb7b3f Update Marathi translation 2019-03-18 10:35:58 +00:00
b46d89257a Update Marathi translation 2019-03-15 12:25:58 +00:00
6956a403d0 Update Marathi translation 2019-03-15 12:24:03 +00:00
d67359f096 Updated Italian translation 2019-03-14 17:50:11 +01:00
28860c12dc Update Icelandic translation 2019-03-14 07:59:52 +00:00
e3fe627faa Update Polish translation 2019-03-13 18:11:45 +01:00
Ell
f8aec23e33 app: avoid pushing undo while updating colormap entries
In GimpColormapEditor, while updating a colormap entry, only push
an undo step when confirming the new color.

(cherry picked from commit 506f412a05)
2019-03-13 10:57:19 -04:00
Ell
68f5bc63b6 app: more "Readjust" improvements
... technical stuff.

(cherry picked from commit 1e89c161c5)
2019-03-13 10:12:12 -04:00
1b9fdddc78 Update Icelandic translation 2019-03-13 11:01:44 +00:00
4d08f75978 Update Icelandic translation 2019-03-13 10:48:33 +00:00
b3e34ccbae Update Turkish translation 2019-03-13 10:38:08 +00:00
282adfd581 Update Icelandic translation 2019-03-13 10:06:58 +00:00
3c68387e15 Update Icelandic translation 2019-03-13 09:55:23 +00:00
Ell
581944253c app: improve transform-tools readjustment
In GimpTransformGridTool, extend the functionality of the
"Readjust" button, such that if the transformation is already
adjusted to the view (i.e., when the button is clicked the second
time), readjust the transformation to the item bounds (as when
using the tool "normally"), and vice versa.  This allows switching
back and forth between "normal" mode, and "adjusted-to-view" mode.

Additionally, disable readjustment when the current transforamtion
is invalid, and show an error when readjustment results in an
invalid transformation.

(cherry picked from commit a3fa3b6181)
2019-03-13 05:28:36 -04:00
Ell
f6229c921a app: in gimp_tool_gui_set_response_sensitive(), allow non-existent ID
In gimp_tool_gui_set_response_sensitive(), silently ignore non-
existent response IDs, instead of emitting a CRITICAL, to match the
behavior of GtkDialog and GimpOverlayDialog.  This simplifies code
with optional dialog responses.

(cherry picked from commit 92216a635a)
2019-03-13 05:28:36 -04:00
9ee3ee9aaa Update Hungarian translation 2019-03-13 08:39:59 +00:00
c0be74d7f1 Update Polish translation 2019-03-12 18:54:46 +01:00
942da1ad66 Update Icelandic translation 2019-03-12 14:35:33 +00:00
0857c5025d Update Icelandic translation 2019-03-12 14:25:36 +00:00
578ed98227 Update Icelandic translation 2019-03-12 14:18:56 +00:00
90ee7635ce Update Icelandic translation 2019-03-12 14:14:57 +00:00
9e64f4ac7d Update Ukrainian translation 2019-03-12 07:18:12 +00:00
78877be607 Tools presets -> Tool Pre_sets. Fixes #3092 2019-03-11 23:48:19 +03:00
1c143228f0 Update Icelandic translation 2019-03-11 19:47:02 +00:00
790c4b002e Update Icelandic translation 2019-03-11 19:03:05 +00:00
0f4b010199 Updated Danish translation 2019-03-11 19:54:29 +01:00
Ell
3be1a98408 libgimpwidgets: fix arithmetic-expression supprot in GimpSizeEntry
... after commit 8b3c7ae193.

(cherry picked from commit 81a361be73)
2019-03-11 13:53:47 -04:00
914d06547d Update Swedish translation 2019-03-11 16:56:29 +00:00
3e08bd7e22 Update Polish translation 2019-03-11 11:39:12 +01:00
18a2f576bb plug-ins: try to clarify "save-transp-pixels" argument of tiff saving.
This argument should actually say "Do not store premultiplied channel
values", which is what the TIFF spec calls "Unassociated alpha" (vs.
"associated alpha" when values are stored premultiplied by alpha).

Now I can see where the current description is coming from, which is
that any color with alpha 0 (totally masked) ends up as RGBA value (0,
0, 0, 0), in other words, the color information is completely lost. Yet
this label is not very helpful to understand what the checkbox really
does. I decided to not just change it altogether as people would have
gotten used to this for years, but at least adding completary
information in API and tooltip in GUI.
2019-03-11 10:45:28 +01:00
23ffa791f0 Update Dutch translation 2019-03-10 13:40:26 +00:00
Ell
f27bf95e05 Issue #2557 - Gimp Can't Rotate By More Than 180 Degree
When the "wrap" property of a GimpSpinButton is TRUE, wrap-around
out-of-range values entered through the spin-button's text entry,
instead of clamping them.  Since we're using GimpSpinButton
everywhere since last commit, this applies to all our angle-entry
spin buttons (including spin scales).

(cherry picked from commit 8b3c7ae193)
2019-03-09 07:43:17 -05:00
Ell
2dad85b84f libgimpwidgets, app, plug-ins: use GimpSpinButton everywhere
Replace all direct uses of GtkSpinButton with GimpSpinButton, so
that its modified behavior extends to all our spin buttons.
2019-03-09 07:43:13 -05:00
633f6c1f94 Update Marathi translation 2019-03-09 12:08:33 +00:00
1e725b3dbd NEWS: keep up-to-date. 2019-03-09 12:28:21 +01:00
a0a7ead13f plug-ins: tiff exporting can now support INDEXED*.
Not sure what this @image_types parameter of gimp_install_procedure() is
used for. Exporting was working find with INDEXEDA image even when not
advertized by this function. Let's update this anyway.
2019-03-09 12:17:46 +01:00
72e86545f0 Issue #102: TIFF plugin doesn't handle indexed images with alpha...
... channel.
2019-03-09 12:11:25 +01:00