[gegl] plasma: Give a default UI range
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] plasma: Give a default UI range
- Date: Wed, 14 May 2014 04:27:37 +0000 (UTC)
commit 9b240474c87fc10b5e8b771625ed60c2f8b24f9c
Author: Daniel Sabo <DanielSabo gmail com>
Date: Tue May 13 21:24:24 2014 -0700
plasma: Give a default UI range
Arbitrary, but saner than INT_MIN/MAX for defaults.
operations/common/plasma.c | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/operations/common/plasma.c b/operations/common/plasma.c
index 028307d..d9cdb7f 100644
--- a/operations/common/plasma.c
+++ b/operations/common/plasma.c
@@ -38,14 +38,18 @@ gegl_chant_seed (seed, rand, _("Random seed"), _("Random seed"))
gegl_chant_double (turbulence, _("Turbulence"), 0.0, 7.0, 1.0,
_("The value of the turbulence"))
-gegl_chant_int (x, _("X"), G_MININT, G_MAXINT, 0,
- _("X start of the generated buffer"))
-gegl_chant_int (y, _("Y"), G_MININT, G_MAXINT, 0,
- _("Y start of the generated buffer"))
-gegl_chant_int (width, _("Width"), 0, G_MAXINT, 1024,
- _("Width of the generated buffer"))
-gegl_chant_int (height, _("Height"), 0, G_MAXINT, 768,
- _("Height of the generated buffer"))
+gegl_chant_int_ui (x, _("X"), G_MININT, G_MAXINT, 0,
+ -4096, 4096, 1.0,
+ _("X start of the generated buffer"))
+gegl_chant_int_ui (y, _("Y"), G_MININT, G_MAXINT, 0,
+ -4096, 4096, 1.0,
+ _("Y start of the generated buffer"))
+gegl_chant_int_ui (width, _("Width"), 0, G_MAXINT, 1024,
+ 0, 4096, 1.0,
+ _("Width of the generated buffer"))
+gegl_chant_int_ui (height, _("Height"), 0, G_MAXINT, 768,
+ 0, 4096, 1.0,
+ _("Height of the generated buffer"))
#else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]