]> gitweb.factorcode.org Git - factor.git/commitdiff
added general purpose alert
authorSam Anklesaria <sam@Tintin.local>
Sun, 24 May 2009 22:30:03 +0000 (17:30 -0500)
committerSam Anklesaria <sam@Tintin.local>
Sun, 24 May 2009 22:30:03 +0000 (17:30 -0500)
extra/ui/gadgets/alerts/alerts.factor

index e948c92d43c115c88c3c7b1c305aee6816765255..edecb90ee32c3a909da1a6f1dfbf1609ebc6b4ff 100644 (file)
@@ -7,6 +7,8 @@ IN: ui.gadgets.alerts
    string 22 wrap-lines <label> T{ font { name "sans-serif" } { size 18 } } >>font { 200 100 } >>pref-dim add-gadget 
    "okay" [ close-window ] quot append <border-button> add-gadget "" open-window ;
 
+: alert* ( str -- ) [ ] swap alert ;
+
 :: ask-user* ( model string -- model' )
    [ [let | lbl  [ string <label>  T{ font { name "sans-serif" } { size 14 } } >>font dup , ]
             fldm [ <frp-field> ->% 1 ]