Commit graph

42393 commits

Author SHA1 Message Date
Ell
2052de6c3d devel-docs: fix performance-log profile-view function-column description
(cherry picked from commit 17270bb3aa)
2019-01-23 16:33:32 -05:00
Jehan
e7ec1aa550 app: allow more motion events with line art bucket fill.
When a fill zone was a bit too segmented, you'd want to just stroke
across it. But it was leaving some pieces uncolored, even though the
pointer dragged through it! The exact motion mode allows more events.

Note: I don't set it in the similar color filling (where it could have
been useful too) mostly because it is harder to remove events then (even
if a point was already filled, it could still serve as a seed for more
filling if threshold > 0), thus implied too much processing. Anyway in
all my tests, it was more a problem for line art filling anyway.

(cherry picked from commit 9c13058d54)
2019-01-23 19:42:35 +01:00
Ryuta Fujii
d317fc6dbe Update Japanese translation 2019-01-23 17:04:23 +00:00
Anders Jonsson
0ca82d41f3 Update Swedish translation 2019-01-22 21:48:33 +00:00
Anders Jonsson
9ad93d170b Update Swedish translation 2019-01-22 21:42:29 +00:00
Alexandre Prokoudine
97b905dc0a Update NEWS 2019-01-22 19:34:33 +00:00
Alan Mortensen
2d2aef533a Updated Danish translation of gimp-script-fu 2019-01-22 16:26:32 +01:00
Alan Mortensen
e30011590e Updated Danish translation of gimp-plug-ins 2019-01-22 16:26:30 +01:00
Alan Mortensen
8b66cf0053 Updated Danish translation of gimp-libgimp 2019-01-22 16:26:28 +01:00
Ryuta Fujii
aad44f0abf Update Japanese translation 2019-01-22 12:47:38 +00:00
Ell
6a65e76267 app: fix rectangle-select tool rounded-corners option
In GimpToolRectangle, fix the type of the cornder_radius field, so
that non-integer radii are properly displayed.

In GimpRectangleSelectOptions and GimpToolRectangle, increase the
maximal corner radius.

(cherry picked from commit a472696012)
2019-01-21 11:39:28 -05:00
Alan Mortensen
dbe80835ae Updated Danish translation 2019-01-21 14:06:13 +01:00
Michael Natterer
9adf6c89ff Issue #1942 - Smudge Tool with Sample Merged Option
Add a Sample Merged option to smudge, a lot like for heal, just needed
tweaking in more places.

(cherry picked from commit 34cad3a06e)
2019-01-20 17:50:50 +01:00
Ell
bcc44a08b1 app: fix indentation in gimpmaskundo.h
(cherry picked from commit 4db566f0e1)
2019-01-20 10:33:56 -05:00
Ell
8324aeba82 app: align mask-undo buffer to tile grid
In GimpMaskUndo, align the copied region to the source buffer's
tile grid, so that all copied tiles are COWed.

(cherry picked from commit 7cd768f3d8)
2019-01-20 10:07:33 -05:00
Jehan
78e9f09357 NEWS: keep up to date. 2019-01-20 16:02:19 +01:00
Jehan
10aa988afa Issue #2828: Scrolling up with a mouse within a drop-down list.
We were doing it all the wrong way, fixing one combo box object at a
time. So this commit basically reverses commits 68a33ab5bd, 6dfca83c2a
and a9a979b2d0 and instead runs the same code in the class code. This
way, all objects based on these base classes will have the fix from
scratch.
These improved various other drop-down lists (I found some of them, and
probably not all) as I fixed all GIMP custom widgets based on
GtkComboBox.

Note that it has to be run after filling the list apparently (I had the
problem especially with GimpIntComboBox if running in the _init() code,
then the list widget showed wrong).

(cherry picked from commit 1d984542e9)
2019-01-20 13:48:33 +01:00
Jehan
cbf5e7af7a Issue #2828: Scrolling up with a mouse within a drop-down list.
Just another instance of the GtkCombo issue, same as #2642.

(cherry picked from commit 68a33ab5bd)
2019-01-20 11:58:54 +01:00
oschlueter
951a388cc3 fixed typo in deprecation warning in gimpdrawable.h 2019-01-19 21:26:53 +00:00
Michael Natterer
a94b1389ed Issue #266 - Healing Tool - Sample Merged option does not work
gimp_heal_motion(): when sample merged is active, simply initialize
the paint buffer from the projection instead of the drawable.

(cherry picked from commit e269a837cd)
2019-01-19 18:33:00 +01:00
Ryuta Fujii
a16a95f430 Update Japanese translation 2019-01-18 22:46:45 +00:00
Ell
4c22313ce6 app: improve gimp_channel_clear()
When clearing a channel, do nothing if the channel is already
empty; otherwise, align the cleared rectangle to the channel
buffer's tile grid, so that all affected tiles are dropped, rather
than zeroed.  Furthermore, only update the affected region of the
channel.

(cherry picked from commit ac5e4f4c33)
2019-01-17 15:15:59 -05:00
Ell
858dbf6e18 app: update drawable filter upon alpha-lock change
In GimpDrawableFilter, when operating on a layer, update the filter
when the layer's lock-alpha flag changes.

(cherry picked from commit de4e7b4770)
2019-01-17 14:21:03 -05:00
Jehan
8064a17e86 app: fix a crash in bucket fill tool.
In commit c71b4916af, I forgot to disconnect signals on the bucket fill
options at finalization, leading the software to crash on an
non-existing tool.

(cherry picked from commit 0a952a3429)
2019-01-17 15:37:24 +01:00
Jehan
7700cb3d81 app: improved fix to commit 036ccc70cf.
After discussion with Sébastien Fourey and David Tschumperlé, it was
decided that a better fix for the edge case raised in #2785 was to add a
keypoint anyway, even if the point and none of its neigbours have a
positive smoothed curvature, yet they have a positive raw curvature. In
such case, we use the local maximum raw curvature instead of the local
maximum smoothed curvature.

(cherry picked from commit aa04258620)
2019-01-17 15:37:24 +01:00
Jehan
b35941ec4c Issue #2785: Fill by line art detection produces Segmentation fault...
... with some images.

(cherry picked from commit 036ccc70cf)
2019-01-17 15:37:24 +01:00
Ell
61a6b15a66 app: parallelize gimp_pickable_contiguous_region_by_color()
... by distributing the processed area over multiple threads.

(cherry picked from commit 8571d7812f)
2019-01-17 09:30:51 -05:00
Ell
cfd1d0463f app: convert gimppickable-contiguous-region to C++
(cherry picked from commit 9719dff9c5)
2019-01-17 09:30:50 -05:00
Piotr Drąg
ad969f0285 Update Polish translation 2019-01-17 11:49:35 +01:00
sabri ünal
e67d6752e8 Odd ` characters corrected as '.
(cherry picked from commit 76302b6634)
2019-01-16 12:40:58 +01:00
Ell
940cf5f196 tools: in performance-log-viewer.py, allow inverting selection
In the perofmance-log viewer, add header-bar buttons to clear and
invert the selection, and allow inverting the selection by ctrl-
right-clicking on the sample-selection area.

Update the docs.

(cherry picked from commit b74c33db5c)
2019-01-16 03:58:49 -05:00
Ell
46c5e8f33f tools: in performane-log-viewer.py, change sample-selection icon
(cherry picked from commit f246a0197b)
2019-01-16 03:58:49 -05:00
Marco Ciampa
1e4df259c1 Updated Italian translation 2019-01-16 09:38:38 +01:00
Jehan
32fdd69324 app: add the concept of line art source to Bucket Fill tool.
Additionally to sample merge and active layer, now we can only use the
layer above or below the active layer as line art source.

The line art fill is meant to work on drawing lines. Though sample merge
still is ok in many cases, the more you fill with colors, the more the
line art computation becomes unecessarily complex. Also when you use a
lot of layers with some of them already filled with colors, it makes it
impossible to colorize some line art zones with the tool. Moreover you
just don't want to have to hide every layers out there to colorize one
layer (especially background layers and such as you may want to see the
result with your background).
Thus we want to be able to set the source as a unique layer, while it
not being necessarily the active one (because you want lines and colors
on different layers). In this case, I am assuming that the color and the
line layers are next to each other (most common organization).

(cherry picked from commit c71b4916af)
2019-01-15 17:39:17 +01:00
Ryuta Fujii
83fd555717 Update Japanese translation 2019-01-15 16:20:10 +00:00
Ell
2247fce313 libgimp: in GimpTileBackendPlugin, change default tile multiplier to 1
In GimpTileBackendPlugin, change the default tile multiplier,
specifying the ratio between the backend tile-size, and GIMP's
tile-size, from 2 to 1.  Since we're reading/writing each GIMP tile
using a separate command anyway, using a large multiplier doesn't
provide any benefits, while it does have drawbacks.  In particular,
it reduces the chance that a write operation will affect an entire
tile, which allows us to avoid reading the tile data from GIMP.

(cherry picked from commit a5e2945b68)
2019-01-15 02:48:43 -05:00
Ell
535fd3a041 libgimp: in GimpTileBackendPlugin, don't read tile data upon TILE_SET
Add an internal _gimp_tile_ref_noinit() function, which increases
the ref-count of a tile *without* initializing its data (in
particular, without reading its data from GIMP, or zeroing it.)
Use this function, instead of gimp_tile_ref(), when storing a tile
in GimpTileBackendPlugin, to avoid unnecessarily reading the tile
data from GIMP.

(cherry picked from commit 5ffdb9aa41)
2019-01-15 02:48:41 -05:00
Ryuta Fujii
76e88e392c Update Japanese translation 2019-01-14 16:33:49 +00:00
Rodrigo Lledó
88cd4e205f Update Spanish translation 2019-01-14 07:28:01 +00:00
Marco Ciampa
228d8fbef5 Updated Italian translation 2019-01-14 00:53:56 +01:00
Ell
fe5ee0f7b8 app: clear priority rect when finishing projection rendering
In gimp_projection_finish_draw(), clear the chunk iterator's
priority rect before finishing rendering, since it's not needed at
this point, and this is slightly more efficient.

(cherry picked from commit 9833da3431)
2019-01-13 08:23:05 -05:00
Ell
293ae15b72 app: in filter tools, allow toggling on-canvas controller visibility
In GimpFilterTool, when the filter uses an on-canvas controller,
provide a toggle in the tool's filter-options dialog allowing to
toggle the controller's visibility.  This allows getting the
controller out of the way when unneeded.

(cherry picked from commit 33c22ae2a3)
2019-01-13 08:15:51 -05:00
Ell
c862886205 app: add gimp_tool_widget_{get,set}_visible()
Add mew gimp_tool_widget_{get,set}_visible() functions, which allow
setting the visibility of a tool widget.  While the widget is
invisible, it ignores all events.

(cherry picked from commit f1a7abaef9)
2019-01-13 08:15:50 -05:00
Ell
3ac417afe4 app: in GimpDrawTool, avoid CRITICAL on widget signal if not active
In GimpDrawTool, do nothing in the tool-widget signal handlers if
the draw-tool isn't active, to avoid CRITICALs due to a NULL
display.  This can happen if a widget is set before the tool is
started.

(cherry picked from commit 34e6c8734b)
2019-01-13 08:15:49 -05:00
Ell
8477c3d3cd app: in GimpToolPath, use gimp_tool_message() instead of _set_status() ...
... when trying to edit a locked path.

(cherry picked from commit a9883e98e3)
2019-01-13 08:15:49 -05:00
Ell
300166a612 app: handle GimpToolWidget::message in GimpDrawTool
... by forwarding the message to the tool.

(cherry picked from commit 265071f34b)
2019-01-13 08:15:48 -05:00
Ell
52a8dadaf6 app: handle GimpToolWidget::message in GimpToolWidgetGroup
... by forwarding the message, if the emitting widget has focus.

(cherry picked from commit 00a06f94be)
2019-01-13 08:15:48 -05:00
Ell
38c74c2809 app: add gimp_tool_widget_message[_literal]()
Add a GimpToolWidget::message signal, which can be emitted by tool
widgets to display a message, instead of using the ::status signal.

Add corresponding gimp_tool_widget_message[_literal]() functions.

(cherry picked from commit 1ac4b85ce0)
2019-01-13 08:15:47 -05:00
Ell
10f22753e4 app: in gimpdrawtool.c, s/rectangle/widget/ in tool-widget signal handlers
(cherry picked from commit 749dc3c465)
2019-01-13 08:15:46 -05:00
Piotr Drąg
0da466a47c Update Polish translation 2019-01-13 12:35:40 +01:00