Replace deprecated g_tree_traverse with g_tree_foreach.

g_tree_foreach traverses the tree in sorted order, which is what
irssi was already doing.
Merge pull request #36 from dajohi/g_tree_foreach

Replace deprecated g_tree_traverse with g_tree_foreach.