glib2 windows: extract as methods