plug-ins/maze/maze.[ch] plug-ins/maze/algorithms.c Changed occurreces of

2002-11-20  Dave Neary  <bolsh@gimp.org>

        * plug-ins/maze/maze.[ch]
        * plug-ins/maze/algorithms.c
        * plug-ins/maze/maze_face.c: Changed occurreces of
        timeseed to defaultseed to more accurately reflect what
        happens with the g_rand* functions. Sorry for missing one
        earlier & temporarily breaking the build :~}
This commit is contained in:
Dave Neary 2002-11-20 14:39:17 +00:00 committed by David Neary
parent 7bdf56a60e
commit 0a4c338ee8
5 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,12 @@
2002-11-20 Dave Neary <bolsh@gimp.org>
* plug-ins/maze/maze.[ch]
* plug-ins/maze/algorithms.c
* plug-ins/maze/maze_face.c: Changed occurreces of
timeseed to defaultseed to more accurately reflect what
happens with the g_rand* functions. Sorry for missing one
earlier & temporarily breaking the build :~}
2002-11-20 Sven Neumann <sven@gimp.org>
* plug-ins/maze/maze.[ch]

View File

@ -463,7 +463,7 @@ prim_tileable(gchar *maz, guint x, guint y)
max_progress=x*y/4;
/* Pick someplace to start. */
if (!mvals.timeseed)
if (!mvals.defaultseed)
g_rand_set_seed (gr, rnd);
pos = x * 2 * g_rand_int_range (gr, 0, y/2) + 2 * g_rand_int_range(gr, 0, x/2);

View File

@ -246,7 +246,7 @@ run (gchar *name,
gimp_displays_flush ();
if (run_mode == GIMP_RUN_INTERACTIVE ||
(mvals.timeseed && run_mode == GIMP_RUN_WITH_LAST_VALS))
(mvals.defaultseed && run_mode == GIMP_RUN_WITH_LAST_VALS))
gimp_set_data ("plug_in_maze", &mvals, sizeof (MazeValues));
}
else

View File

@ -33,7 +33,7 @@ typedef struct {
gint offset;
MazeAlgoType algorithm;
/* Interface options. */
gboolean timeseed;
gboolean defaultseed;
} MazeValues;
enum CellTypes {

View File

@ -293,7 +293,7 @@ maze_dialog (void)
/* Seed input box */
seed_hbox = gimp_random_seed_new (&mvals.seed,
&mvals.timeseed,
&mvals.defaultseed,
TRUE, FALSE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, trow,
_("Seed:"), 1.0, 0.5,