[Gtk-sharp-list] Widgets not updating
John Luke
jluke@users.sourceforge.net
Tue, 27 Apr 2004 12:28:54 -0400
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