[Gtk-sharp-list] Window refresh problem

Freon Freon <freongrr@gmail.com>
Thu, 7 Oct 2004 23:03:45 +0200


That's what he's doing. But even with ThreadNotify, the GTk components
are only refreshed when a window grabs the focus (or a mouse is moved
over).
A window running in the background couldn't be updated for instance.
I have the same problem and wonder how I could fix that as well.

(may be a double post ;))

On Thu, 07 Oct 2004 09:53:52 -0700, Todd Berman <tberman@off.net> wrote:
> 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
> 
> 
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>