[Gtk-sharp-list] Widgets not updating

Christian Rudh lists-christian@rudh.se
Wed, 28 Apr 2004 17:00:13 +0200


Thank you!

Gdk.Threads.Enter() and Gdk.Threads.Leave() saved my day!


Thank you once again,
Christian

On Tue, 2004-04-27 at 18:28, John Luke wrote:
> On Sat, 2004-04-24 at 18:20 +0200, Christian Rudh wrote:
> > Hi
> > 
> > I am writing a networking client/server application. The client listens
> > on a socket for messages. When a message arrives it adds text to a
> > TreeStore (connected to a TreeView) and a TextView. Some of the times
> > the text appears instantly in the widgets, but mostly not. Then it
> > doesn't appear until I move the mouse over the widget, or click it.
> > 
> > Is there som way to refresh these widgets (tried QueueDraw but that
> > froze the widgets) manually or am I doing something wrong?
> > 
> 
> I am guessing that you are using threads to update the gui without using
> an Idle callback, Gtk.TreadNotify, and/or Gdk.Threads.Enter/Leave.  But
> this is just a guess without seeing the code (or a small test that shows
> what you are doing).
> http://developer.gnome.org/doc/API/2.0/gdk/gdk-Threads.html
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 
>