window: correctly create GLib.Variant