This is a minor syntax and bug change to the bugfix_jon branch
which corrects some tab characters in a number of files as well
as moving from for loops to while loops for some code sensitive
to GTK which had been included in cvsdude branch for Jon_Hand.

This commit done by Jon Hand. First try for a commit from a
sandbox back to github. Unsure if it will work.