[Gtk-sharp-list] Window refresh problem

Todd Berman tberman@off.net
Thu, 07 Oct 2004 09:53:52 -0700


On Thu, 2004-10-07 at 08:47 -0400, Butler, Jennifer M. wrote:
> Hello all - 
> 
> I'm having a problem getting the gui that I'm working on to refresh
> correctly. I have a background thread running that periodically needs to
> update status information on the gui. My problem is that the gui is only
> refreshing the screen when I move the mouse over it. What I really need is
> for the gui to automatically refresh whenever it is updated (or updates
> itself based on receiving an event from the worker thread).

You can not *touch* any gtk# object from a thread other than the one
that did Application.Run. Use GLib.Idle, or ThreadNotify, or Gtk.Timeout
to accomplish this.

--Todd