[gimp] plug-ins: use the new function Gimp.context_enable_dynamics().
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: use the new function Gimp.context_enable_dynamics().
- Date: Fri, 4 Feb 2022 14:15:05 +0000 (UTC)
commit 387d97437d7e9989720fb71b6cddcf7d6c41c0e2
Author: Jehan <jehan girinstud io>
Date: Fri Feb 4 14:04:46 2022 +0100
plug-ins: use the new function Gimp.context_enable_dynamics().
plug-ins/python/spyro-plus.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/python/spyro-plus.py b/plug-ins/python/spyro-plus.py
index 42dea33b72..e7110038ad 100755
--- a/plug-ins/python/spyro-plus.py
+++ b/plug-ins/python/spyro-plus.py
@@ -529,7 +529,7 @@ class PencilTool():
def draw(self, layer, strokes, color=None):
if color:
Gimp.context_push()
- Gimp.context_set_dynamics('Dynamics Off')
+ Gimp.context_enable_dynamics(False)
Gimp.context_set_foreground(color)
Gimp.pencil(layer, strokes)
@@ -545,7 +545,7 @@ class AirBrushTool():
def draw(self, layer, strokes, color=None):
if color:
Gimp.context_push()
- Gimp.context_set_dynamics('Dynamics Off')
+ Gimp.context_enable_dynamics(False)
Gimp.context_set_foreground(color)
Gimp.airbrush_default(layer, strokes)
@@ -592,7 +592,7 @@ class PreviewTool:
Gimp.context_push()
Gimp.context_set_defaults()
Gimp.context_set_foreground(foreground)
- Gimp.context_set_dynamics('Dynamics Off')
+ Gimp.context_enable_dynamics(False)
Gimp.context_set_brush('1. Pixel')
Gimp.context_set_brush_size(1.0)
Gimp.context_set_brush_spacing(3.0)
@@ -609,7 +609,7 @@ class StrokeTool(AbstractStrokeTool):
def prepare_stroke_context(self, color):
if color:
- Gimp.context_set_dynamics('Dynamics Off')
+ Gimp.context_enable_dynamics(False)
Gimp.context_set_foreground(color)
Gimp.context_set_stroke_method(Gimp.StrokeMethod.LINE)
@@ -623,7 +623,7 @@ class StrokePaintTool(AbstractStrokeTool):
def prepare_stroke_context(self, color):
if self.can_color and color is not None:
- Gimp.context_set_dynamics('Dynamics Off')
+ Gimp.context_enable_dynamics(False)
Gimp.context_set_foreground(color)
Gimp.context_set_stroke_method(Gimp.StrokeMethod.PAINT_METHOD)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]