From: Axel S. <Axe...@en...> - 2009-10-04 14:26:38
|
Hi Bernhard, On Oct 4, 2009, at 13:53, Bernhard Lehnert wrote: > Hello list! > > I wrote a programm to make up some data for some other program. The > idea > is that my prog computes some output, displays the output in a > textview > and starts another programm with the same information that has just > been > displayed in the textview. > > I call > > textBufferSetText textBufferOut output > > and then start the other prog (runInteractiveCommand and > waitForProcess). > It basically works fine just that even though the textBufferSetText is > called first, the data is actually shown after the other program is > finished. > > Is there a way to wait for gtk/gtk2hs to actually show the data before > proceeding? I'm not sure what your aim is and what you see at the moment. If you want to avoid that the TextView updates it's content for a while, you can use signalBlock and signalUnblock to block the 'exposeEvent'. Axel. |