diff --git a/app/dialogs/about-dialog.c b/app/dialogs/about-dialog.c index e384c1565d..bda27cd191 100644 --- a/app/dialogs/about-dialog.c +++ b/app/dialogs/about-dialog.c @@ -41,6 +41,10 @@ #include "gimp-intl.h" +/* The first authors are the creators, don't shuffle them */ +#define START_INDEX (G_N_ELEMENTS (creators) - 1 /*NULL*/) + + typedef struct { GtkWidget *dialog; @@ -242,9 +246,6 @@ about_dialog_reshuffle (GimpAboutDialog *dialog) for (i = 0; i < dialog->n_authors; i++) dialog->shuffle[i] = i; - /* here we rely on the authors array having Peter and Spencer first */ -#define START_INDEX 2 - for (i = START_INDEX; i < dialog->n_authors; i++) { gint j = g_rand_int_range (gr, START_INDEX, dialog->n_authors); @@ -259,8 +260,6 @@ about_dialog_reshuffle (GimpAboutDialog *dialog) } } -#undef START_INDEX - g_rand_free (gr); } diff --git a/app/dialogs/authors.xsl b/app/dialogs/authors.xsl index 4c6bf414d8..d06317c6dc 100644 --- a/app/dialogs/authors.xsl +++ b/app/dialogs/authors.xsl @@ -17,6 +17,15 @@ /* NOTE: This file is auto-generated from authors.xml, do not edit it. */ +static const gchar * const creators[] = +{ + + + NULL +}; + + + static const gchar * const authors[] = {