Commit graph

42393 commits

Author SHA1 Message Date
Anders Jonsson
ab7fbeed08 Update Swedish translation 2018-04-18 20:31:56 +00:00
luz.paz
147c09f19e Bug 795161 - Misc. typo fixes in source comments and doxygen
Found via `codespell`
Follow-up to  commit 7fdb963e01
2018-04-18 21:06:57 +02:00
Ell
43974c3c6a data: update splash-screen text for 2.10.0-RC2 2018-04-18 15:03:31 -04:00
Ell
542a04735b app: fix airbrush periodic stamp behavior
Commit ddfc7715cb changed the
airbrush periodic stamp behavior, so that instead of using the main
brush, it issued a full MOTION event, potentially using a different
brush when using a GIH brush.

Fix this, by renaming the "timeout" signal of GimpAirbrush to
"stamp", and by adding a new gimp_airbrush_stamp() function, which
should be used for painting the periodic airbrush dab in response,
instead of calling gimp_paint_core_paint() directly, and which
calls gimp_airbrush_paint() instead, as the old code did.

In order to call this function from the paint thread, we replace
the various gimp_paint_tool_paint_core_foo() functions, introduced
in the above commit, with a generic gimp_paint_tool_paint_push()
function, which takes a callback (and a data pointer) to run on the
paint thread, and queues it for execution (when not using the paint
thread, the function is called directly from the calling thread.)
2018-04-18 14:50:57 -04:00
Michael Natterer
ce8c4cb2a0 Bug 795288 - Layer is moved by arrow keys even after all locks...
...(Pixel, Position and Size, Alpha Channel) are enabled.

gimp_edit_selection_tool_translate(): add checks for locks and bail
out with a message if the item is NULL or locked.

gimp_move_tool_button_press(): refactor NULL and lock checks to look
more like the new code added above, and also check "lock-content" of
channels and masks: moving them changes their pixels.
2018-04-18 20:41:54 +02:00
Michael Natterer
64c38edd81 Bug 795300 - ICC profile conversion artifacts and gamma problems
Cache the fish in GimpColorTransform as suggested by Massimo.
2018-04-18 18:49:47 +02:00
Michael Natterer
0a39874bda themes: fix "Dark" selected colors in "kde_hack_1" too, whatever that is 2018-04-18 14:54:34 +02:00
Michael Natterer
cafb18643f app: another optimization in GimpOperationGradient
Don't reallocate the cache in prepare() but only on demand in
process().
2018-04-18 12:47:40 +02:00
Jehan
12b9d7a4e7 build: update dev flatpak to 2.10.0 RC2. 2018-04-18 12:34:07 +02:00
Anders Jonsson
79460c82c3 Update Swedish translation 2018-04-18 09:20:38 +00:00
Alan Mortensen
370dbd3e04 Updated Danish translation of gimp-tips 2018-04-18 10:16:04 +02:00
Alan Mortensen
e94d3b953f Updated Danish translation of gimp-plug-ins 2018-04-18 10:16:04 +02:00
Alan Mortensen
3b41261287 Updated Danish translation 2018-04-18 10:16:04 +02:00
Alan Mortensen
d32d13b16d Updated Danish translation of gimp-libgimp 2018-04-18 10:16:04 +02:00
Michael Natterer
9dbf919d46 app: speed up gradient rendering a lot
by using a cache of colors that is calculated once, instead of
calling gimp_gradient_get_color_at() for each rendered pixel.
2018-04-18 01:18:09 +02:00
Michael Natterer
bccaaeb56c configure.ac: post-release version bump to 2.10.0-RC2-git 2018-04-17 22:24:35 +02:00
Michael Natterer
6582692ec6 configure.ac: release 2.10.0-RC2 2018-04-17 21:27:05 +02:00
Øyvind Kolås
27d75a5bd0 NEWS: mention CIE Lab gradient blending 2018-04-17 21:24:58 +02:00
Michael Natterer
ff82b3779c NEWS: more updates 2018-04-17 21:21:33 +02:00
Michael Natterer
5e3df8032a NEWS: mention new libgimp API 2018-04-17 21:16:50 +02:00
Michael Natterer
4d94863abc app: don't use style->dark for histogram and curve intersections/grid
because it's always darker than "bg" and not visible in dark themes.
Instead, use "text_aa" which is always between "text" and "base".
2018-04-17 20:44:03 +02:00
Michael Natterer
434728da08 themes: switch Dark's base[SELECTED] and text[SELECTED] colors
so selected text is totally obvious. Also improves histogram and other
places which use base/text's higher contrast.
2018-04-17 19:59:06 +02:00
Michael Natterer
436e53d390 pdb: improve docs about which procedures are affected by context settings
Also add some double blank lines so they show up as single blank
lines in the generated docs, which improves readablility.
2018-04-17 13:19:16 +02:00
Michael Natterer
e02a03a63d devel-docs: add missing stuff to libgimpbase-sections.txt 2018-04-17 13:19:16 +02:00
Michael Natterer
93313cd93c docs, etc: system gimprc and manpage regenerated with new setting
(filter-tool-use-last-settings no)
2018-04-17 12:56:39 +02:00
Michael Natterer
93f41b344c pdb: improve docs of gimp_context_set_diagonal_neighbors() 2018-04-17 01:16:54 +02:00
Michael Natterer
c0dd812ea6 pdb: fix use of "seed" properties in plug_in_compat.pdb
now that GeglParamSpecSeed is uint.
2018-04-17 00:42:15 +02:00
Michael Natterer
2da25576c3 app: fix duplication of GeglParamSpecSeed, we missed its limits before
(which are probably never used, but still)
2018-04-17 00:12:01 +02:00
Michael Natterer
cb84e0ab56 configure.ac: reqire GEGL >= 0.3.34 2018-04-17 00:08:48 +02:00
Tobias Ellinghaus
fff0717632
PFM: Fix writing with ',' as decimal separator
Some locales (like German) use ',' as the decimal separator, so using
printf like functions to output a float value fails when the result
should always use '.'. Since there are only two distinct possibilities
we just write the string representation and be done with it.
2018-04-16 23:54:45 +02:00
Michael Natterer
4bcc1183e5 devel-docs: add new libgimp functions 2018-04-16 21:45:21 +02:00
Michael Natterer
233ac80de1 script-fu: port all scripts to the new gimp-drawable-edit functions 2018-04-16 20:12:12 +02:00
Michael Natterer
90ef8b123c libgimp: properly sort gimp.defs 2018-04-16 16:13:46 +02:00
Ell
ddfc7715cb app: make the airbrush tool thread-safe w.r.t. paint thread
GimpAirbrush currently performs painting and flushes the image on
its own during the airbrush timeout.  This is unsafe w.r.t. the
paint thread, since the timeout is run on the main thread, while
paint commands should run on the paint thread.

Add a "timeout" signal to GimpAirbrush, and simply emit this signal
during the airbrush timeout, rather than actually painting.

Connect to this signal in GimpAirbrushTool, and use
gimppaintool-paint to perform the actual painting, in a thread-safe
manner (see the previous commit.)
2018-04-16 09:56:39 -04:00
Ell
e02a339e01 app: reorganize gimppainttool-paint, to allow use by subclasses
We'd like subclasses of GimpPaintTool to be able to issue paint
commands to the tool's paint-core (in particular, see the next
commit.)  Since paint commands should be executed on the paint
thread, the subclasses must not call the paint-core functions
directly, but should rather let gimppainttool-paint issue the
commands on their behalf.

Reorgainze gimppainttool-paint to make it usable for this purpose
by subclasses.  In particular, add
gimp_paint_tool_paint_core_paint() and
gimp_paint_tool_paint_core_interpolate(), which call the
corresponding paint-core functions on the paint thread.

Additionally, rename the {start,end,flush}_paint() virtual
functions of GimpPaintTool to paint_{start,end,flush}(), and rename
gimp_paint_tool_is_painting() to gimp_paint_tool_paint_is_active(),
so that all the gimppainttool-paint-related stuff are grouped under
the same namespace.
2018-04-16 09:56:39 -04:00
Michael Natterer
3f4995d3d7 pdb: add procedures to set the built-in gradients
gimp-context-set-gradient-fg-bg-rgb
gimp-context-set-gradient-fg-bg-hsv-cw
gimp-context-set-gradient-fg-bg-hsv-ccw
gimp-context-set-gradient-fg-transparent
2018-04-16 11:42:46 +02:00
Jehan
92a8978064 data: re-add 3 brushes of very questionable origin, but as "obsolete".
So I discover the concept of obsolete data in GIMP where some data can
be apparently unavailable in the GUI, but still selectable by script.
This somehow reverts commit 26cb87aa2d
then moves the brushes into the obsolete section instead of simple
deletion. This way, any script using the said brushes won't break at
least.

We will definitely remove the brushes for 3.0, but for now it's better
to keep scripts as compatible as possible.
2018-04-16 10:48:10 +02:00
Jehan
64bab848c3 NEWS, devel-docs: next release is RC2 + some fixes in release howto. 2018-04-16 09:13:37 +02:00
Sebastian Rasmussen
d3124d980a Update Swedish translation 2018-04-16 07:11:27 +00:00
Michael Natterer
410e55c40c pdb: never pass bogus supersample values to gimp_drawable_gradient()
even when supersampling is not enabled, or we will get warnings about
out-of-range property values.
2018-04-16 01:18:05 +02:00
Marco Ciampa
055e61f065 Updated Italian translation 2018-04-15 17:53:37 +02:00
Marco Ciampa
c30239c912 Updated Italian translation 2018-04-15 17:52:05 +02:00
Marco Ciampa
bba7130cc2 Updated Italian translation 2018-04-15 17:50:36 +02:00
Alexandre Prokoudine
dbf57b4494 Update Russian translation 2018-04-15 17:54:48 +03:00
Michael Natterer
5ee67deea5 pdb: deprecate all non-clipboard functions in the "edit" group
Still have to port script-fu scripts...
2018-04-15 16:39:59 +02:00
Michael Natterer
1305926f38 pdb: forgot to add drawable_edit.pdb 2018-04-15 16:15:58 +02:00
Tobias Ellinghaus
c50449670b
Fix build with vector icons enabled
The invert-svg tool was never built so generating the Symbolic-Inverted
icons failed. Thanks Ell for the hint how to fix this.
2018-04-15 16:10:04 +02:00
Michael Natterer
ef3edece9b pdb: improve docs of deprecated functions
Don't unconditionally overwrite all the proc's description, author
etc.  Instead, try to preserve them and append the "Deprecated" notes
to the help texts and generated comments.

Only affects one procedure because we killed the meta info of all
other deprecated procs so far, but now we don't have to do that any
longer.
2018-04-15 16:06:00 +02:00
Michael Natterer
50536e1c38 Bug 795230 - Rename Blend tool and provide PDB compatibility
Add new PDB group "drawable_edit" which has all procedures from the
"edit" group which are not cut/copy/paste.

The new group's procedures don't have opacity, paint_mode
etc. arguments but take them from the context instead. Unlike the old
gimp-edit-fill, gimp-drawable-edit-fill now uses the context's opacity
and paint_mode.

The new gimp-drawable-edit-gradient-fill procedure uses even more
context properties which are also newly added with this commit
(gradient_color_space, gradient_repeat_mode, gradient_reverse).

And some cleanup in context.pdb.

This is still WIP, nothing in the edit group is depcreated yet.
2018-04-15 15:28:50 +02:00
Ell
1a277f2cc6 icons: s/gimp-tool-blend/gimp-tool-gradient/ in SVG icons
In particular, so that we use the correct element IDs, if we ever
extract the icons based on element ID.
2018-04-15 03:31:08 -04:00