[gegl] properties: move seed to last property in many ops



commit 71cb3b42b9001160a86855e7d31bdfc95c48cf9a
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat May 17 16:32:22 2014 +0200

    properties: move seed to last property in many ops

 operations/common/mosaic.c        |    4 ++--
 operations/common/noise-cell.c    |    4 ++--
 operations/common/noise-cie-lch.c |    1 -
 operations/common/noise-hurl.c    |    4 ++--
 operations/common/noise-pick.c    |    4 ++--
 operations/common/noise-simplex.c |    4 ++--
 operations/common/noise-slur.c    |    4 ++--
 operations/common/noise.c         |    4 ++--
 operations/common/plasma.c        |    8 ++++----
 operations/common/shift.c         |    4 ++--
 10 files changed, 20 insertions(+), 21 deletions(-)
---
diff --git a/operations/common/mosaic.c b/operations/common/mosaic.c
index 3f57c97..78c0b1f 100644
--- a/operations/common/mosaic.c
+++ b/operations/common/mosaic.c
@@ -102,13 +102,13 @@ gegl_property_double (light_dir, "nick", _("Light direction"),
     "unit", "degree",
     NULL)
 
-gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
-
 gegl_property_boolean (antialiasing, "nick", _("Antialiasing"),
     "blurb", _("Enables smoother tile output"),
     "default", TRUE,
     NULL)
 
+gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
+
 #else
 
 #define GEGL_OP_AREA_FILTER
diff --git a/operations/common/noise-cell.c b/operations/common/noise-cell.c
index 5c7afc3..b8dfc69 100644
--- a/operations/common/noise-cell.c
+++ b/operations/common/noise-cell.c
@@ -33,8 +33,6 @@
 
 #ifdef GEGL_CHANT_PROPERTIES
 
-gegl_chant_seed    (seed, rand, _("Random seed"),
-                    _("The random seed for the noise function"))
 gegl_chant_double  (scale, _("Scale"), 0, 20.0, 1.0,
                     _("The scale of the noise function"))
 gegl_chant_double  (shape, _("Shape"), 1.0, 2.0, 2.0,
@@ -45,6 +43,8 @@ gegl_chant_int     (iterations, _("Iterations"), 1, 20, 1,
                     _("The number of noise octaves."))
 gegl_chant_boolean (palettize, _("Palettize"), FALSE,
                     _("Fill each cell with a random color"))
+gegl_chant_seed    (seed, rand, _("Random seed"),
+                    _("The random seed for the noise function"))
 
 #else
 
diff --git a/operations/common/noise-cie-lch.c b/operations/common/noise-cie-lch.c
index 55dffbb..1178d7a 100644
--- a/operations/common/noise-cie-lch.c
+++ b/operations/common/noise-cie-lch.c
@@ -37,7 +37,6 @@ gegl_property_double (chroma_distance, "nick", _("Chroma"),
 gegl_property_double (hue_distance, "nick", _("Hue"),
     "default", 3.0, "min", 0.0, "max", 180.0,
     NULL)
-
 gegl_property_seed   (seed, rand, "nick", _("Random seed"), NULL)
 
 #else
diff --git a/operations/common/noise-hurl.c b/operations/common/noise-hurl.c
index 3652366..6a4babb 100644
--- a/operations/common/noise-hurl.c
+++ b/operations/common/noise-hurl.c
@@ -28,8 +28,6 @@
 
 #ifdef GEGL_PROPERTIES
 
-gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL) 
-
 gegl_property_double (pct_random, "nick", _("Randomization (%)"),
     "default", 50.0, "min", 0.0, "max", 100.0,
     NULL)
@@ -38,6 +36,8 @@ gegl_property_int (repeat, "nick", _("Repeat"),
     "default", 1, "min", 1, "max", 100, 
     NULL)
 
+gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL) 
+
 #else
 
 #define GEGL_OP_POINT_FILTER
diff --git a/operations/common/noise-pick.c b/operations/common/noise-pick.c
index ef885d5..dcc93dc 100644
--- a/operations/common/noise-pick.c
+++ b/operations/common/noise-pick.c
@@ -29,8 +29,6 @@
 
 #ifdef GEGL_PROPERTIES
 
-gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
-
 gegl_property_double (pct_random, "nick", _("Randomization (%)"),
     "default", 50.0, "min", 0.0, "max", 100.0,
     NULL)
@@ -39,6 +37,8 @@ gegl_property_int (repeat, "nick", _("Repeat"),
     "default", 1, "min", 1, "max", 100,
     NULL)
 
+gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
+
 #else
 
 #define GEGL_OP_AREA_FILTER
diff --git a/operations/common/noise-simplex.c b/operations/common/noise-simplex.c
index f061465..3d64d69 100644
--- a/operations/common/noise-simplex.c
+++ b/operations/common/noise-simplex.c
@@ -28,12 +28,12 @@
 
 #ifdef GEGL_CHANT_PROPERTIES
 
-gegl_chant_seed    (seed, rand, _("Random seed"),
-                    _("The random seed for the noise function"))
 gegl_chant_double  (scale, _("Scale"), 0, 20.0, 1.0,
                     _("The scale of the noise function"))
 gegl_chant_int     (iterations, _("Iterations"), 1, 20, 1,
                     _("The number of noise octaves."))
+gegl_chant_seed    (seed, rand, _("Random seed"),
+                    _("The random seed for the noise function"))
 
 #else
 
diff --git a/operations/common/noise-slur.c b/operations/common/noise-slur.c
index 2bb26ed..2e30229 100644
--- a/operations/common/noise-slur.c
+++ b/operations/common/noise-slur.c
@@ -31,8 +31,6 @@
 
 #ifdef GEGL_PROPERTIES
 
-gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
-
 gegl_property_double (pct_random, "nick", _("Randomization (%)"),
     "default", 50.0, "min", 0.0, "max", 100.0,
     NULL)
@@ -41,6 +39,8 @@ gegl_property_int (repeat, "nick", _("Repeat"),
     "default", 1, "min", 1, "max", 100,
     NULL)
 
+gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
+
 #else
 
 #define GEGL_OP_AREA_FILTER
diff --git a/operations/common/noise.c b/operations/common/noise.c
index eb0d8bf..3b2c9d3 100644
--- a/operations/common/noise.c
+++ b/operations/common/noise.c
@@ -28,10 +28,10 @@ gegl_chant_double_ui (scale, _("Scale"),    -G_MAXDOUBLE, G_MAXDOUBLE, 1.8, 0.0,
                       NULL)
 gegl_chant_double_ui (zoff,  _("Z offset"), -G_MAXDOUBLE, G_MAXDOUBLE,  -1, -1.0, 8.0, 1.0,
                       NULL)
-gegl_chant_double_ui (seed,  _("Seed"),     -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, 0.0, 100.0, 1.0,
-                      NULL)
 gegl_chant_int       (n,     _("Iteration"), 0, 20, 3,
                       NULL)
+gegl_chant_double_ui (seed,  _("Seed"),     -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, 0.0, 100.0, 1.0,
+                      NULL)
 
 #else
 
diff --git a/operations/common/plasma.c b/operations/common/plasma.c
index e35c1f0..133f8f8 100644
--- a/operations/common/plasma.c
+++ b/operations/common/plasma.c
@@ -33,10 +33,6 @@
 
 #ifdef GEGL_PROPERTIES
 
-gegl_property_seed (seed, rand,
-    "nick",  _("Random seed"),
-    NULL)
-
 gegl_property_double (turbulence, "nick", _("Turbulence"),
     "blurb", _("High values give more variation in details"),
     "default", 1.0, "min", 0.0, "max", 7.0,
@@ -76,6 +72,10 @@ gegl_property_int (height, "nick", _("Height"),
     "role",  "output-extent",
     NULL)
 
+gegl_property_seed (seed, rand,
+    "nick",  _("Random seed"),
+    NULL)
+
 #else
 
 #define GEGL_OP_SOURCE
diff --git a/operations/common/shift.c b/operations/common/shift.c
index 6d0761e..6dbc021 100644
--- a/operations/common/shift.c
+++ b/operations/common/shift.c
@@ -34,13 +34,13 @@ gegl_property_int  (shift, "nick", _("Shift"),
     "unit", "pixel-distance",
     NULL)
 
-gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
-
 gegl_property_enum (direction, GeglShiftDirection, gegl_shift_direction,
     "nick", _("Shift direction"),
     "default", GEGL_SHIFT_DIRECTION_HORIZONTAL,
     NULL)
 
+gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
+
 #else
 
 #define GEGL_OP_AREA_FILTER


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]