Refactor gtk/w32_filesel.c for better code reuse.