IN: gadgets USING: kernel namespaces threads ; TUPLE: dialog continuation delegate ; : dialog-ok ( dialog -- ) dup unparent t swap dialog-continuation call ; : dialog-cancel ( dialog -- ) dup unparent f swap dialog-continuation call ; : ( -- gadget ) "OK" [ [ dialog-ok ] swap handle-gesture drop ]