Re: repainting GtkTextView

Harring Figueiredo wrote:

The textview does not repaint until I leave the while loop. i.e.
it "hangs" on the while, once it leaves the while, the 10 messages apper on the
text view.

How do I force it to print the message on the text view as soo as the message
is available.

NOTE: YES, this is single thread app.

Just dont use sleep() - put your code in timeout function with 1 sec timeout.
Consider gtk_timeout_add, gtk_timeout_remove.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]