Ah, ok, in response to my own mail: I've added a comment to the  
bufferInsertText signal which explains your problem:

-- | Some text is inserted. Insertion actually occurs in the default  
handler.
--
-- * The function connected to this handler may not modify the buffer  
since
--   this would invalidate the iterator. If this function replaces the
--   default handler, it needs to stop the emission of this signal in  
order
--   to prevent the default handler from running. If additional text  
should
--   be inserted, this can be done using the 'after' function to  
connect.
--
bufferInsertText :: TextBufferClass self => Signal self (TextIter ->  
String -> IO ())


Cheers,
Axel

On 13.03.2012, at 07:11, Rouan van Dalen wrote:

> Hi everyone.
>
> I found the problem.  Because I was using `on` to hook up my signal  
> handler it
> executed before the default signal handler.
>
> just changed my code to use `after` to hook up signal handler and  
> everything is
> working as expected now.
>
> 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


------------------------------------------------------------------------------
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