Commit Graph

45924 Commits

Author SHA1 Message Date
Jehan 647ebffe7b app: GimpTransformTool multi-layer aware.
This implied a lot of other core changes, which also pushed me into
improving some of the edit actions and PDB calls to be multi-layer aware
in the same time.

Note that it is still work-in-progress, but I just had to commit
something in an acceptable intermediate state otherwise I was just going
crazy.

In particular now the various transform tools are multi-layer aware and
work simultaneously on all selected layers (and the linked layers if any
of the selected layers is linked too). Both preview and final transform
processing works.
In the limitations, preview doesn't work well (only one layer in the
preview) when there is a selection (though the actual transform works).

Also I am left to wonder how we should process this case of canvas
selection+transform on multi-layers. Indeed currently I am just creating
a floating selection (like we used to for the selection+transform case)
containing a transform result of the composited version of all selected
layers. This is a possible expected result, but another could be to get
several transformed layers (without composition). But then should the
"Floating Selection" concept allow for multiple Floating Selections?
Sooo many questions left to answer.
2020-05-28 14:28:01 +02:00
Dimitris Spingos (Δημήτρης Σπίγγος) 2056abf9fb Updated Greek translation 2020-05-28 09:25:21 +03:00
Jordi Mas a97a46e707 Update Catalan translation 2020-05-27 21:42:25 +02:00
Øyvind Kolås d7d0c046f0 app,build: depend on babl-0.1.76 2020-05-27 15:21:09 +02:00
Daniel Mustieles 603f0dc375 Update Spanish translation 2020-05-27 11:27:35 +00:00
Daniel Mustieles faeaaa30c7 Update Spanish translation 2020-05-27 11:19:49 +00:00
Jordi Mas 6d14822994 Update Catalan translation 2020-05-27 10:03:20 +02:00
Anders Jonsson 2a4196b88f Update Swedish translation 2020-05-26 23:43:08 +00:00
Anders Jonsson 6984665477 Update Swedish translation 2020-05-26 23:40:49 +00:00
Simon Budig 3927401a80 app: Simplify the logic for the GimpToolPath popup. 2020-05-26 23:09:25 +02:00
Niels De Graef 23d5ef2546 vala: Fix some metadata warnings
We were mentioning some symbols that aren't introspected, because they
are part of `app/*`.
2020-05-26 22:05:12 +02:00
Jehan 5398d15b55 app, pdb: fix build warning because of discarded 'const' qualifier.
The PDB creates the array of drawables as a `const GimpItem *` and the
compiler does not like when we drop the const qualifier. So force this
const dropping with explicit type casting.
2020-05-26 21:49:58 +02:00
Jordi Mas 151b01e530 Update Catalan translation 2020-05-26 21:23:24 +02:00
Niels De Graef acf50009f8 Allow building vala plugins 2020-05-26 17:52:52 +00:00
Yuri Chornoivan 2799a709ea Update Ukrainian translation 2020-05-26 17:17:33 +00:00
Yuri Chornoivan 4fb00298e1 Update Ukrainian translation 2020-05-26 16:52:53 +00:00
Yuri Chornoivan 1a23448e1b Update Ukrainian translation 2020-05-26 16:44:34 +00:00
Daniel Mustieles 1827f55410 Update Spanish translation 2020-05-26 15:14:09 +00:00
Daniel Mustieles e5b5515038 Update Spanish translation 2020-05-26 15:10:26 +00:00
Jehan b8eef4e859 app: fix check for XCF 14.
I must obvioulsy check for selected layer number over 1, not 0. Right
now, all common XCF files ended as being version 14.
2020-05-26 16:57:27 +02:00
Jehan 6f4fd52c86 NEWS: some more changes. 2020-05-26 16:57:27 +02:00
Daniel Mustieles cf4aba1800 Update Spanish translation 2020-05-26 14:53:11 +00:00
Jehan 24d062d7c7 NEWS: kick start the NEWS file for GIMP 2.99 development branch.
I'm sure I missed a lot of evolution. We should have started keeping
this file updated ever since the start. I added what I could think of at
least.
2020-05-26 15:53:11 +02:00
Jehan b00bb346a9 plug-ins: more complete naming for Python|Script-Fu consoles.
Just "Console" is enough in the context of menus with submenu hierarchy,
but when accessing directly the feature (with Action Search for
instance), a more accurate name is nicer. It avoids to have to check
what is what in the tooltip text.
2020-05-26 14:32:11 +02:00
Jehan ab172872ce plug-ins: fix python-console after GimpUi instrospection separation.
Patch by darix!
2020-05-26 14:15:17 +02:00
Jehan b05fc6950d app: create and use gimp_image_item_list_linked().
This function returns a new list of items from an input list. The output
list will optionally contains linked items if any of the input item is
linked so we don't have to rewrite the same duplicated code for every
feature where item links matter.

Moreover it also filters descendants if any of the input items is an
item group, hence avoiding to apply a transformation twice to a
descendant item.

Use this new function already in 2 places, hence skimming quite a bit of
redundant code.
2020-05-26 14:15:17 +02:00
Jehan 7233464664 app: Alpha to Selection will warn when the resulting selection is empty.
Proposed by Aryeom to make it more obvious of a possible issue when
running "Alpha to Selection" and ending up with an empty selection
(which is useless hence may means there might have been a problem in
one's workflow).
This warning will also occur for similar actions (i.e. the
Add|Substract|Intersect Alpha to|from|with Selection actions).
2020-05-26 14:15:17 +02:00
Jehan 03af9da83b app: GimpTool multi-drawable aware.
Right now I don't change the logics of any of the tools, except that the
GimpTool class now stores a list of drawables instead of a single
drawable. This can be later used on a case-by-case basis to make various
tools actually work on multiple drawables.
2020-05-26 14:15:17 +02:00
Jehan 661f057603 app: add gimp_image_equal_selected_drawables().
This can be used in various places where we want to check whether a
previously saved list of drawables is still the same list of selected
drawables. It used to be easily done with an equality test with a single
active drawable, but not anymore with a list of selected drawables.
2020-05-26 14:15:17 +02:00
Michael Schumacher 8bf8eb9dc0 plug-ins: use G_GOFFSET_FORMAT to fix a long int vs. long long int format warning 2020-05-26 12:12:10 +02:00
Ell 10f9ee63c6 app: don't leak UI manager in GimpToolPath 2020-05-26 11:10:27 +03:00
Ell 18d747611c app: forward tool get_popup() to widget get_popup() in GimpDrawTool
Override GimpTool::get_popup() in GimpDrawTool, forwarding the
request to the tool widget, if one exists.

Remove the same code in GimpVectorTool -- this now works for all
tools/widgets.
2020-05-26 11:07:25 +03:00
Ell 4b1c8f9ec7 app: fix precondition return values in gimp_tool_widget_get_popup() 2020-05-26 11:05:58 +03:00
Ell afda774f44 app: update tool widgets on display-shell changes more granularly
Partially revert commit c73710e410,
avoiding updating tool widgets unconditionally on tool resume in
GimpDrawTool -- it's too expensive in general.

Instead, handle display-shell changes in GimpToolWidget, by adding
GimpToolWidget::update_on_{scale,scroll,rotate} flags, which
subclasses can use to request an update on any of these events.

Set the flags as necessary for the affected widgets.
2020-05-26 10:46:01 +03:00
Ell ec69083354 app: fix compiler warnings in GimpToolWidget 2020-05-26 10:44:46 +03:00
Simon Budig 8839cb58bb pdb: update autogenerated files. 2020-05-25 22:55:01 +02:00
Simon Budig 22784727f4 pdb: implement gimp-vectors-stroke-reverse 2020-05-25 22:54:47 +02:00
Simon Budig c10778fa03 app: implement a few more functions for the ToolPath context menu. 2020-05-25 22:13:45 +02:00
Simon Budig f6f180c5cb app: Add basic infratructure for a vector tool popup menu. 2020-05-25 22:13:45 +02:00
Simon Budig 44a7e92967 app/vectors: implement stroke_reverse and stroke_shift_start 2020-05-25 12:33:10 +02:00
Christian Kirbach 185dd8ba2e Update German translation 2020-05-23 22:10:52 +00:00
Yuri Chornoivan d73a6a5cec Update Ukrainian translation 2020-05-23 06:42:04 +00:00
Jordi Mas 3222381199 Update Catalan translation 2020-05-23 08:06:34 +02:00
Jordi Mas 1bb229a6d0 Update Catalan translation 2020-05-23 07:28:34 +02:00
Ell 258c8454d5 app: implement GimpColorManaged for GimpImageProxy
In GimpImageProxy, implement GimpColorManaged by forwarding the
functions to the underlying GimpImage, and forwarding the signals
in the other direction.  This fixes color-managed view in the
Navigation dockable.
2020-05-22 16:35:56 +03:00
Ell d9f5558977 app: update core-enums.c 2020-05-22 16:35:56 +03:00
Niels De Graef febc5cc6e6 Revert "Don't forget to include <glib-object.h>"
This reverts commit 9fce4757ce.
2020-05-21 22:39:10 +02:00
Yuri Chornoivan 4bc328af8e Update Ukrainian translation 2020-05-21 14:53:34 +00:00
Niels De Graef 25e535b5e0 Fix missing includes
We're exposing symbols in our header files like `GType`, `GFile` and
others, without actually including the proper headers. This also gives
errors in the GIR scanner (who can't resolve those symbols).
2020-05-21 16:02:55 +02:00
Jehan ae4abbabfd app: layers-merge-group multi-layer aware.
Also layers-flatten-image does not care about the layer selection and
layers-anchor works anyway only when there is a floating selection,
which means only one layer selected.
2020-05-21 15:08:28 +02:00