[gimp/soc-2012-unified-transformation: 44/52] transformtool: Use G_N_ELEMENTS instead of hardcoding 13 here



commit 40a2ecbe44c31f90e74fc9d2165771b1702b89b8
Author: Mikael Magnusson <mikachu src gnome org>
Date:   Mon Aug 13 17:57:25 2012 +0200

    transformtool: Use G_N_ELEMENTS instead of hardcoding 13 here

 app/tools/gimptransformoptions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/tools/gimptransformoptions.c b/app/tools/gimptransformoptions.c
index 6c74311..883e091 100644
--- a/app/tools/gimptransformoptions.c
+++ b/app/tools/gimptransformoptions.c
@@ -497,7 +497,7 @@ gimp_transform_options_gui (GimpToolOptions *tool_options)
       gchar     *label;
       gint       i;
 
-      for (i = 0; i < 13; i++)
+      for (i = 0; i < G_N_ELEMENTS (opt_list); i++)
         {
           label = g_strdup_printf (opt_list[i].desc,
                                    gimp_get_mod_string (opt_list[i].mod));



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