Commit Graph

42354 Commits

Author SHA1 Message Date
Balázs Meskó c483beadb3 Update Hungarian translation 2018-10-06 17:14:17 +00:00
Balázs Meskó 30d7599389 Update Hungarian translation 2018-10-06 17:12:22 +00:00
Balázs Meskó e5f312335e Update Hungarian translation 2018-10-05 21:51:30 +00:00
Øyvind Kolås ca6e22f0f8 app/configure: depend on babl-0.1.58 2018-10-05 16:28:30 +02:00
Ell 3eaae58595 Issue #2308 - Strange behavior when switching active layer during transform
Replace GimpTransformTool's 'drawable' field with an 'item' field,
and have GimpTransformGridTool set it to the active item, to which
the transformation is applied, during its initialization.  In
gimp_transform_tool_get_active_item(), return the value of the
transform tool's 'item' field, if not NULL, instead of the image's
active item.  This makes sure we apply that transform-grid tools
apply the transformation for the item for which they were
activated, even if the image's active item has changed.
2018-10-04 21:51:23 -04:00
Ell 84066ca26a app: use "step" blending function in "FG to BG (Hardedge)" gradient
Use a single segment with a "step" blending function, added in the
previous commit, instead of two separate segments, for the "FG to
BG (Hardedge)" internal gradient.  This makes it simpler to change
its endpoint colors by modifying the gradient, instead of changing
the FG/BG colors.
2018-10-02 21:53:59 -04:00
Ell 68bf99e806 Issue #2303 - Please add Constant type of gradient interpolation ...
... to make multi-color hard-edge gradient fills possible

Add a new "step" gradient-segment blending function, which is 0
before the midpoint, and 1 at, and after, the midpoint.  This
creates a hard-edge transition between the two adjacent color stops
at the midpoint.  Creating such a transition was already possible,
but required duplicating the same color at the opposing ends of two
adjacent stops, which is cumbersome.
2018-10-02 21:53:50 -04:00
Anders Jonsson be84c6e766 Update Swedish translation 2018-10-02 21:01:15 +00:00
Jeremy Bicha 3e579efae0 Remove extra newline character in zh_HK translation
We don't use \r on Unix

I believe that it's best practice to not have \n in
translatable strings either.
2018-10-02 14:53:19 -04:00
Tim Sabsch 97392b9e15 Update German translation 2018-10-02 18:05:05 +00:00
Hannie Dumoleyn d853f56203 Update Dutch translation
(cherry picked from commit c3f43465a4)
2018-10-02 07:22:35 +00:00
ONO Yoshio 3c92b5e00b plug-ins: fix a datasourcetype does not shown in metadata-editor.
Tag of DigitalSourceType has 5 entries, but the combobox shown
only 4 items.
2018-10-02 08:43:56 +09:00
Ell e46fdc714e app: in gimp-parallel, cancel ongoing async operations upon exit
When shutting-down gimp-parallel, cancel and/or abort any ongoing
and queued async operations, instead of finishing them (async
operations that already started executing will be canceled, but
execution will be blocked until they're finished.)  This is
especially important since we're shutting down gimp-parallel before
the destruction of data factories.  This commit causes any ongoing
async operations of the factories to be canceled on shutdown,
rather than waiting for them to finish normally.
2018-10-01 05:24:45 -04:00
Ell 6bc0b3b8ad app: add gimp_data_factory_data_cancel()
Add a new GimpData::data_cancel() virtual function, and a
corresponding gimp_data_factory_data_cancel() function.  This
function should cancel any ongoing async operations related to the
factory (i.e., included in its async set), and wait for the
operations to finish.  Provide a default implementation that simply
cancels and waits on the factory's async set.

Use this function to cancel any ongoing operations during factory
destruction, and in gimp_data_factory_data_free().

Override this function in GimpFontFactory, for which we can't
really cancel font loading, and simply cancel and clear the
factory's async set without waiting for loading to finish, making
sure that nothing happens (and, in particular, that the factory
isn't being accessed, since it might be already dead) when loading
does finish.
2018-10-01 05:24:45 -04:00
Ell 50bab438ce app: don't depend on GimpData sort order for identifying internal data
In gimp_data_factory_data_foreach(), don't rely on internal
GimpData objects being sorted first (while this is currently true
for all types of GimpData, they may override the sort order.)
2018-10-01 05:24:45 -04:00
Jehan 5ac267820f INSTALL: update mypaint-brushes repository (finally upstream!).
The MyPaint project now hosts the repository which was under my name
previously. Yeah!
2018-09-30 21:05:59 +02:00
Ell 88438c5055 tools: in performance-log-viewer.py, add annotated source view
Add an annotated source view to the performance-log viewer's
profile view.  When selecting the [Self] entry of a function's
profile, for which source information is available and whose source
is found locally, a new column opens, showing the function's
source, annotated with sample statistics.  Header-bar buttons allow
navigation through the annotated lines, selection of all the
samples corresponding to a given line, and opening the text editor
at the current line.
2018-09-30 09:01:12 -04:00
Ell b672f20075 tools: in performance-log-view.py, don't change call-graph path ...
... when selecting a function's samples

Since we now preserve the call-graph path across state changes,
there's no need to explictly set the path after selecting a
function's samples in the profile view.
2018-09-30 09:01:12 -04:00
Ell 97498017c0 tools: in performance-log-viewer.py, cache source file lookups
In the performance-log viewer, cache the results of source-file
lookups, to speed up future lookups.
2018-09-30 05:36:49 -04:00
Ell 0f38709259 tools: in performance-log-viewer.py, allow viewing source files ...
... in backtraces

In the performance-log viewer's backtrace viewer, show a document
icon next to stack frames with source-location information, whose
source file is found locally.  Clicking the icon opens the source
file in a text editor at the relevant line.

Two environment variables control this feature:

  - PERFORMANCE_LOG_VIEWER_PATH is a list of colon-separated
    directories in which to look for source files.  If this
    variable is undefined, the current directory is used.

  - PERFORMANCE_LOG_VIEWER_EDITOR is the command to use to launch
    the text editor, for editing a specific file at a specific
    line.  The special strings "{file}" and "{line}" are replaced
    with the filename and line-number, respectively.  If this
    variable is undefined, "xdg-open {file}" is used.
2018-09-30 05:10:47 -04:00
Jehan cb892aa0e6 plug-ins: add more generated files in .gitignore. 2018-09-29 23:16:40 +02:00
Sergio Jiménez Herena 1e7d714f0a plug-ins: pygimp: Add autogenerated python files to .gitignore
(cherry picked from commit 0839a55d51)
2018-09-29 23:08:31 +02:00
Michal 04688c3111 Use the "with" keyword when dealing with file objects
According to: https://docs.python.org/3.6/tutorial/inputoutput.html
2018-09-29 20:25:40 +00:00
Michal 263b4722ca Use assignment operator 2018-09-29 20:25:40 +00:00
Michal 6090fd654f "Generator Expressions" improvements
https://www.python.org/dev/peps/pep-0289/
2018-09-29 20:25:40 +00:00
Michal 82e59a951d Use list comprehensions
https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions
2018-09-29 20:25:40 +00:00
Michal 09d1a3c82f Comparision to None should be done with "is" or "is not"
https://www.python.org/dev/peps/pep-0008/#programming-recommendations
2018-09-29 20:25:40 +00:00
Ell 46e5e4d478 tools: in performance-log-viewer.py, handle infinities in sample graph
Don't take infinite values into account when calculating the
vertical scale of sample graphs, and rather display infinite values
as dashed lines at the top of the graph.
2018-09-29 15:43:46 -04:00
Ell a21667821c app: avoid double-initialization of operation tools when changing layers
When re-activating an operation tool by clicking on a different
drawable while the tool is active, we re-call the corresponding
procedure to re-activate the tool, which implictly initializes it.
Avoid initializaing it explicitly in addition to that, since this
leads to the creation of a new config object by the filter tool,
while the GUI still refers to the old, now-dead, config object,
causing CRITICALs or segfaults when changing any parameter.
2018-09-29 14:31:48 -04:00
Ell d12dd3fb35 app: don't commit trivial warp transform
In the warp tool, don't commit a trivial (empty) transform.  This
is especially important now that exiting the tool through undo
causes it to get comitted (... with a trivial transform).
2018-09-29 12:38:45 -04:00
Ell ed20393f0e Issue #1180 - Warp tool aborts changes to layer A when ...
... changing layers and warping layer B

Add a new GimpToolControl::dirty_action field, which specifies the
tool action to perform when the a dirty event matching the tool
control's dirty mask occurs; this field defaults to HALT.  Apply
this action to the active tool in tool-manager in response to a
matching dirty event, instead of unconditionally halting the tool.
Likewise, use this action to stop the active tool in response to a
button-press event on a different drawable in the same image.

Set the dirty action of the gradient and warp tools to COMMIT, so
that they get comitted, rather than stopped, in cases such as
switching layers (including switching to/from quick-mask mode),
and, for the warp tool, changing the selection.
2018-09-29 12:38:45 -04:00
Alan Mortensen 1742e76144 Updated Danish translation of gimp-windows-installer 2018-09-29 17:44:52 +02:00
Alan Mortensen 4ad04cdef8 Updated Danish translation of gimp-plug-ins 2018-09-29 17:44:52 +02:00
Alan Mortensen 242c556ff9 Updated Danish translation 2018-09-29 17:44:52 +02:00
Alan Mortensen 8895c20a90 Updated Danish translation of gimp-libgimp 2018-09-29 17:44:52 +02:00
Ell ae3c006293 app: avoid applying buffer to drawable if application region is empty
In gimp_drawable_real_{apply,replace}_buffer(), bail if the
applcation region, after intersection with the drawable and mask
extents, is empty.  This avoids trying to create a GeglBuffer with
negative width/height.
2018-09-29 10:27:20 -04:00
Ell a782acab57 Issue #2287 - Weird things happen with dodge tool ...
... (some sort of corruption)

In gimp_drawable_real_replace_buffer(), adjust the processed buffer
and mask_buffer regions according to the changes made to the
application region, as calculated by intersecting it with the
drawable and mask extents.  This fixes wrong application position
when painting using the heal, dodge/burn, smudge, or convolve
tools, on a drawable whose origin is above/to the left of the
image's origin, and there's a selection active.
2018-09-29 10:27:20 -04:00
Ell ae628a8664 Issue #2222 - Warp Transform doesn't commit changes upon saving ...
... the XCF file

Add a "saving" signal to GimpImage, which is emitted when the image
is about to be saved or exported (but before it's actually saved/
exported).  Connect to this signal in tool-manager, and commit the
current tool in response (unless its GimpToolControl::preserve is
TRUE).
2018-09-29 02:39:23 -04:00
Ell fca05065e1 tools: in performance-log-viewer.py, retain call-graph path
In the performance-log viewer's profile view, retain the current
call-graph path across state changes.
2018-09-29 00:16:20 -04:00
Ell 6ad3dbdb17 app: in performance-log-viewer.py, add undo support
Add undo functionality to the performance-log viewer, which allows
undoing/redoing changes to the sample selection, and the call-graph
state.
2018-09-28 16:30:57 -04:00
Piotr Drąg e6b92dbbc6 Update Polish translation 2018-09-28 00:06:32 +02:00
Jehan fb0b04e8d9 build: bump some dependencies in nightly flatpak.
Sync with recent changes of the stable flatpak.
2018-09-27 23:47:23 +02:00
Jehan ba53a833b2 desktop: prepare release of GIMP 2.10.8.
Please everyone, feel free to update the list of upcoming
changes/features, if you feel some particular change should be more
prominently exposed in this list (or at the opposite that some change is
not worth mentionning), or for rewording, etc.
2018-09-27 23:32:37 +02:00
Ell c1347a7f26 app: construct tool-options GUI lazily
We currently construct the tool-options GUI for all the tools at
startup, which takes a significant amount of time.  Instead,
only register the GUI construction function with the tool-options
object, using the new gimp_tools_set_tool_options_gui_func()
function, and use the registered function to construct the GUI when
actually needed.
2018-09-27 02:41:59 -04:00
Ell d33fb0e7b8 tools: various improvements in gimp-performance-log-viewer.py
Fix int-ratio variable formatting when the input is NaN, which can
happen when calculating the standard deviation, if all the values
are infinite.

Fix keyboard sample-range selection.

Deselect all samples when right-clicking a sample graph.
2018-09-27 01:13:04 -04:00
Ell 9a2999a553 plug-ins: in script-fu, don't query PDB procedures' info on startup
script-fu used to query the information of every PDB procedure on
startup, in order to get the number of parameters for each
procedure.  This was done so that nullary procedures were defined
in such a way as to accept (and ignore) any number of arguments
(and at least one of the scripts we ship relies on this behavior).
However, this requires expensive back-and-forth communication with
the main GIMP process, which notable slowed down script-fu's
startup, and had a non-negligible impact on GIMP's startup time.

Instead, avoid querying procedure information, and implement the
special behavior for nullary procedures at call time.  We do this
by defining, in addition to the "strict" gimp-proc-db-call
procedure, a "permissive" -gimp-proc-db-call internal procedure,
and using the latter to call the predefined PDB procedures.
2018-09-26 14:41:12 -04:00
Rafael Fontenelle 72b80213bc Update Brazilian Portuguese translation 2018-09-26 08:13:07 -03:00
Ell a5baba5539 Issue #2272 - Crash when using the intelligent-scissors tool ...
... after erasing all points

When erasing the last remaining point in the iscissors tool, halt
the tool, rather than leaving the tool active with an empty curve,
which it is not prepared to handle, and which results in a segfault
once trying to add a new point.

Additionally, when erasing the last remaining segment (i.e., the
two last remaining points), don't erase the entire segment (i.e.,
both points), but rather convert the segment to its initial point,
so that, in effect, we only erase the last point of the segment.
2018-09-26 02:14:16 -04:00
Ell 53964dcb92 Revert "app: add "perspective correction" option to the measure tool"
This reverts commit d31725a9cd.

This option is not very useful.  In order to do actual perspective
correction, we need more information, such as the scene's vanishing
point and the camera's focal length.  The measure tool is probably
not the right place to do all that.  Let's simply revert this.
2018-09-25 04:21:49 -04:00
Ell bf2ea81fcc app: use gimp_dialog_set_alternative_button_order()
... instead of gtk_dialog_set_alternative_button_order().
2018-09-23 14:08:05 -04:00