[gtk] realize window on creation

Fix #339