on master help sign in
Use objectDestroy not destroy event
commitc9878ae8f97dafe49ef0c675f96c6cba19c7867e authorHamish Mackenzie <Hamish.K.Mackenzie@googlemail.com> dateMon 9 Dec 2013, 04:56 (13 years ago) parent34c6f99
1 file changed+2−2
tests/TestJSC.hs+2−2
tests/TestJSC.hs+2−2
@@ -18,7 +18,7 @@ module Main (
1818import Prelude hiding((!!), catch)
1919import Graphics.UI.Gtk
2020 (Window, widgetDestroy, postGUIAsync, postGUISync, widgetShowAll,
21− mainGUI, mainQuit, on, destroyEvent, containerAdd, scrolledWindowNew,
21+ mainGUI, mainQuit, on, objectDestroy, containerAdd, scrolledWindowNew,
2222 windowSetPosition, windowSetDefaultSize, timeoutAddFull, windowNew,
2323 initGUI)
2424import Control.Concurrent
@@ -82,7 +82,7 @@ testJSC' showWindow f = do
8282 webView <- webViewNew
8383 window `containerAdd` scrollWin
8484 scrollWin `containerAdd` webView
85− on window destroyEvent . liftIO $ do
85+ on window objectDestroy $ do
8686 debugLog "onDestroy"
8787 tryTakeMVar state
8888 debugLog "put state"