From 2e867e49a544ad82e0cbc0d3be4a249b4b7960d3 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Thu, 10 Jun 2010 16:06:38 -0500 Subject: [PATCH] Add a remove-wm-handler word to windows ui backend --- basis/ui/backend/windows/windows.factor | 3 +++ 1 file changed, 3 insertions(+) diff --git a/basis/ui/backend/windows/windows.factor b/basis/ui/backend/windows/windows.factor index 0e0de67440..06ea870196 100755 --- a/basis/ui/backend/windows/windows.factor +++ b/basis/ui/backend/windows/windows.factor @@ -569,6 +569,9 @@ H{ } clone wm-handlers set-global [ [ execute( -- wm ) add-wm-handler ] with each ] [ wm-handlers get-global set-at ] if ; +: remove-wm-handler ( wm -- ) + wm-handlers get-global delete-at ; + [ handle-wm-close 0 ] WM_CLOSE add-wm-handler [ 4dup handle-wm-paint DefWindowProc ] WM_PAINT add-wm-handler