Hi everyone.

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.

The code was inspired from to see if the bug was fixed in gtk2hs 0.12.2:
http://permalink.gmane.org/gmane.comp.lang.haskell.gtk2hs/2813


This seems like an old bug and I need to use the bufferInsertText signal.
The above link seems like it was almost a year ago and I would just like to
know if this has been fixed or is planned to be fixed or is there a known
workaround.

TIA

Kind regards
Rouan
------------------------------------------------------------------------------
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