[gimp] pdb: fix use of "seed" properties in plug_in_compat.pdb



commit c0dd812ea6b546ed14ed655d075226aae06ef017
Author: Michael Natterer <mitch gimp org>
Date:   Tue Apr 17 00:42:15 2018 +0200

    pdb: fix use of "seed" properties in plug_in_compat.pdb
    
    now that GeglParamSpecSeed is uint.

 app/pdb/plug-in-compat-cmds.c |   12 ++++++------
 pdb/groups/plug_in_compat.pdb |   12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/app/pdb/plug-in-compat-cmds.c b/app/pdb/plug-in-compat-cmds.c
index 2fbda22..7cc87e2 100644
--- a/app/pdb/plug-in-compat-cmds.c
+++ b/app/pdb/plug-in-compat-cmds.c
@@ -3154,7 +3154,7 @@ plug_in_randomize_hurl_invoker (GimpProcedure         *procedure,
           GeglNode *node;
 
           if (randomize)
-            seed = g_random_int ();
+            seed = (gint32) g_random_int ();
 
           node =
             gegl_node_new_child (NULL,
@@ -3207,7 +3207,7 @@ plug_in_randomize_pick_invoker (GimpProcedure         *procedure,
           GeglNode *node;
 
           if (randomize)
-            seed = g_random_int ();
+            seed = (gint32) g_random_int ();
 
           node =
             gegl_node_new_child (NULL,
@@ -3260,7 +3260,7 @@ plug_in_randomize_slur_invoker (GimpProcedure         *procedure,
           GeglNode *node;
 
           if (randomize)
-            seed = g_random_int ();
+            seed = (gint32) g_random_int ();
 
           node =
             gegl_node_new_child (NULL,
@@ -3340,7 +3340,7 @@ plug_in_rgb_noise_invoker (GimpProcedure         *procedure,
                                       "green",       g,
                                       "blue",        b,
                                       "alpha",       a,
-                                      "seed",        g_random_int_range (0, G_MAXINT),
+                                      "seed",        g_random_int (),
                                       NULL);
 
           node = wrap_in_gamma_cast (node, drawable);
@@ -3463,7 +3463,7 @@ plug_in_noisify_invoker (GimpProcedure         *procedure,
                                       "green",       g,
                                       "blue",        b,
                                       "alpha",       a,
-                                      "seed",        g_random_int_range (0, G_MAXINT),
+                                      "seed",        g_random_int (),
                                       NULL);
 
           node = wrap_in_gamma_cast (node, drawable);
@@ -3852,7 +3852,7 @@ plug_in_spread_invoker (GimpProcedure         *procedure,
                                  "operation", "gegl:noise-spread",
                                  "amount-x",  (gint) spread_amount_x,
                                  "amount-y",  (gint) spread_amount_y,
-                                 "seed",      (guint) g_random_int (),
+                                 "seed",      g_random_int (),
                                  NULL);
 
           gimp_drawable_apply_operation (drawable, progress,
diff --git a/pdb/groups/plug_in_compat.pdb b/pdb/groups/plug_in_compat.pdb
index 7c48d05..3f5af34 100644
--- a/pdb/groups/plug_in_compat.pdb
+++ b/pdb/groups/plug_in_compat.pdb
@@ -3140,7 +3140,7 @@ HELP
       GeglNode *node;
 
       if (randomize)
-        seed = g_random_int ();
+        seed = (gint32) g_random_int ();
 
       node =
         gegl_node_new_child (NULL,
@@ -3201,7 +3201,7 @@ HELP
       GeglNode *node;
 
       if (randomize)
-        seed = g_random_int ();
+        seed = (gint32) g_random_int ();
 
       node =
         gegl_node_new_child (NULL,
@@ -3262,7 +3262,7 @@ HELP
       GeglNode *node;
 
       if (randomize)
-        seed = g_random_int ();
+        seed = (gint32) g_random_int ();
 
       node =
         gegl_node_new_child (NULL,
@@ -3400,7 +3400,7 @@ HELP
                                   "green",       g,
                                   "blue",        b,
                                   "alpha",       a,
-                                  "seed",        g_random_int_range (0, G_MAXINT),
+                                  "seed",        g_random_int (),
                                   NULL);
 
       node = wrap_in_gamma_cast (node, drawable);
@@ -3536,7 +3536,7 @@ HELP
                                   "green",       g,
                                   "blue",        b,
                                   "alpha",       a,
-                                  "seed",        g_random_int_range (0, G_MAXINT),
+                                  "seed",        g_random_int (),
                                   NULL);
 
       node = wrap_in_gamma_cast (node, drawable);
@@ -3978,7 +3978,7 @@ HELP
                              "operation", "gegl:noise-spread",
                              "amount-x",  (gint) spread_amount_x,
                              "amount-y",  (gint) spread_amount_y,
-                             "seed",      (guint) g_random_int (),
+                             "seed",      g_random_int (),
                              NULL);
 
       gimp_drawable_apply_operation (drawable, progress,


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