On Jul 8, 2007, at 16:24 , D.V. wrote:

But I still can't react to that Close button that's automatically
added to that About Dialog.

Here's my latest (random) try :

 aboutdialog <- xmlGetWidget xml castToAboutDialog "aboutdialog1"
 onDelete aboutdialog $ \event -> do
     widgetHide aboutdialog
     return True
 onResponse aboutdialog $ \resp -> do
   case resp of
     ResponseClose -> widgetHide aboutdialog
     otherwise    -> return ()

That looks reasonable to me, unfortunately I'd guess the dialog already got dealt with in the stock Close button handler. You might need to dig inside the AboutDialog and install your own onClicked handler on the Close button.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university    KF8NH


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to