Cleanup G_LayoutSelect a bit.