[gegl] dropshadow: use double for the "grow-radius" property
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] dropshadow: use double for the "grow-radius" property
- Date: Sun, 22 Mar 2020 11:43:40 +0000 (UTC)
commit 208f6b1304a8c2acce8fa418fb5c5f87392cc5c8
Author: Ell <ell_se yahoo com>
Date: Sun Mar 22 13:35:48 2020 +0200
dropshadow: use double for the "grow-radius" property
... instead of int. The gegl:median-blur "radius" property, which
"grow-radius" is redirected to, is an int, but this was a mistake,
and it's not easy to fix rectroactively, because it's part of the
ABI. Let's at least future-proof gegl:dropshadow.
operations/common/dropshadow.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/operations/common/dropshadow.c b/operations/common/dropshadow.c
index d27a13e1c..830f7aa87 100644
--- a/operations/common/dropshadow.c
+++ b/operations/common/dropshadow.c
@@ -55,9 +55,10 @@ property_enum (grow_shape, _("Grow shape"),
GEGL_DROPSHADOW_GROW_SHAPE_CIRCLE)
description (_("The shape to expand or contract the shadow in"))
-property_int (grow_radius, _("Grow radius"), 0.0)
- value_range (-100, 100)
- ui_range (-50, 50)
+property_double (grow_radius, _("Grow radius"), 0.0)
+ value_range (-100.0, 100.0)
+ ui_range (-50.0, 50.0)
+ ui_digits (0)
ui_steps (1, 5)
ui_gamma (1.5)
ui_meta ("unit", "pixel-distance")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]