Quoting Rouan van Dalen <rvda...@yahoo.co.uk>:

I have the following code to connect a handler to the bufferInsertText signal:

   buf <- textViewGetBuffer txtView
   buf `on` bufferInsertText $ \_ _ -> putStrLn "hi!"

When I run app and press a key in the textView I get a segfault.

Attached is a patch that fixes this problem. I've just been given commit access to the repository, so you should be able to receive it from a "darcs pull" soon -- but certainly not before the weekend.

~d

Attachment: textbuffer.dpatch
Description: Binary data

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to