I'm getting crazy values returned as the position from editableInsertText. This is using the example from the Editable haddock documentation:
idRef <- newIORef undefined id <- onInsertText entry $ \str pos -> do id <- readIORef idRef signalBlock id pos' <- editableInsertText entry (map toUpper str) pos signalUnblock id stopInsertText id return pos' writeIORef idRef id When I run it, the pos' returned is 129475190752018432, when inserting a string of length 1 at position 1. Looking at the binding code I don't see anything obviously wrong. This is on 64bit Linux. The fact the number is so large is suspicious. The C type is an int which is still 32bit even on 64bit machines. That said, the types all look right. c2hs generates the binding with the type Ptr CInt, and we use with, so it should all be ok. I'm stumped. Duncan ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel