Commit 9972a181 authored by Benjamin Otte's avatar Benjamin Otte

testgtk: Simplify code

Use a for loop for iterating.
parent 11454135
......@@ -5255,13 +5255,9 @@ make_focus_table (GList **list)
table = gtk_table_new (5, 5, FALSE);
i = 0;
j = 0;
while (i < 5)
for (i = 0; i < 5; i++)
{
j = 0;
while (j < 5)
for (j = 0; j < 5; j++)
{
GtkWidget *widget;
......@@ -5279,11 +5275,7 @@ make_focus_table (GList **list)
GTK_EXPAND | GTK_FILL,
GTK_EXPAND | GTK_FILL,
5, 5);
++j;
}
++i;
}
*list = g_list_reverse (*list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment