Commit Graph

4 Commits

Author SHA1 Message Date
Ell
0c4e6f1ef3 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.

(cherry picked from commit afda774f44)
2020-05-26 10:46:44 +03:00
Ell
60db24b655 app: another fix in GimpToolFocus
(cherry picked from commit 1171798ca6)
2020-05-15 13:39:53 +03:00
Ell
03fcb782a6 app: various fixes in GimpToolFocus
(cherry picked from commit 2fcf667efd)
2020-05-15 12:34:04 +03:00
Ell
36b3745d10 app: add GimpToolFocus tool widget
Add a new GimpToolFocus tool widget, which defines a focus region,
consisting of an inner limit, an outer limit, and a transition
midpoint between them.  The widget allows controlling the limits
and the midpoint, and moving, scaling, and rotating the region.

(cherry picked from commit 5e005a762c)
2020-05-15 00:49:46 +03:00