[gimp/gimp-2-10] app: in the gradient tool, halt gradient editor before committing filter
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: in the gradient tool, halt gradient editor before committing filter
- Date: Sat, 12 Jan 2019 09:55:05 +0000 (UTC)
commit 7547df54dd544cdc080d3d958e0f85bd71961605
Author: Ell <ell_se yahoo com>
Date: Sat Jan 12 04:48:17 2019 -0500
app: in the gradient tool, halt gradient editor before committing filter
In the gradient tool, halt the gradient editor before committing
the filter, so that its image-flush idle source is removed before
applying the operation, to avoid flushing the image, and hence
restarting its projection rendering, during application.
(cherry picked from commit 2256ab22f755dc181d86c193380399d54b08ca4c)
app/tools/gimpgradienttool.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/app/tools/gimpgradienttool.c b/app/tools/gimpgradienttool.c
index 741a68e22d..cbc7cc5c95 100644
--- a/app/tools/gimpgradienttool.c
+++ b/app/tools/gimpgradienttool.c
@@ -725,6 +725,12 @@ gimp_gradient_tool_commit (GimpGradientTool *gradient_tool)
if (gradient_tool->filter)
{
+ /* halt the editor before committing the filter so that the image-flush
+ * idle source is removed, to avoid flushing the image, and hence
+ * restarting the projection rendering, while applying the filter.
+ */
+ gimp_gradient_tool_editor_halt (gradient_tool);
+
gimp_tool_control_push_preserve (tool->control, TRUE);
gimp_drawable_filter_commit (gradient_tool->filter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]