testgtk: Simplify code

Use a for loop for iterating.
This commit is contained in:
Benjamin Otte 2011-09-28 04:42:54 +02:00
parent 114541359f
commit 9972a1813e

View File

@ -5255,13 +5255,9 @@ make_focus_table (GList **list)
table = gtk_table_new (5, 5, FALSE); table = gtk_table_new (5, 5, FALSE);
i = 0; for (i = 0; i < 5; i++)
j = 0;
while (i < 5)
{ {
j = 0; for (j = 0; j < 5; j++)
while (j < 5)
{ {
GtkWidget *widget; GtkWidget *widget;
@ -5279,11 +5275,7 @@ make_focus_table (GList **list)
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL,
5, 5); 5, 5);
++j;
} }
++i;
} }
*list = g_list_reverse (*list); *list = g_list_reverse (*list);