diff --git a/library/cocoa/ui.factor b/library/cocoa/ui.factor index 87a437ed38..1653eb0a4a 100644 --- a/library/cocoa/ui.factor +++ b/library/cocoa/ui.factor @@ -33,7 +33,7 @@ H{ } clone views set-global r> [frame] NSRect-h swap - 0 3array ; : send-mouse-moved ( view event -- ) - swap [ mouse-location ] keep view move-hand ; + over >r mouse-location r> view move-hand ; : button ( event -- n ) #! Cocoa -> Factor UI button mapping diff --git a/library/ui/hand.factor b/library/ui/hand.factor index 9edaf34fd5..bf0381c09c 100644 --- a/library/ui/hand.factor +++ b/library/ui/hand.factor @@ -84,7 +84,7 @@ C: hand ( -- hand ) : show-message ( string/f -- ) #! Show a message in the status bar. - world-status set-label-text* ; + world-status [ set-label-text* ] [ drop ] if* ; : update-help ( -- string ) #! Update mouse-over help message. diff --git a/library/ui/launchpad.factor b/library/ui/launchpad.factor index 18385793d3..923d985878 100644 --- a/library/ui/launchpad.factor +++ b/library/ui/launchpad.factor @@ -13,8 +13,5 @@ gadgets-listener io kernel memory namespaces sequences ; { "Exit" [ 0 exit ] } } ; -: simple-window ( gadget title -- ) - >r ""