[Gtk-sharp-list] Refresh of elements in a treeview

Todd Berman tberman@off.net
Tue, 16 Nov 2004 16:12:57 -0800


Wow. Just floored. Wow!

Ok, this has been covered like 200 times on this list.

I will attempt to distill it down to the simplest possible terms.

What you are doing is following a recipe for disaster. Here, I will show
you the recipe.

Take one part gtk+ object. Take one part another thread that isn't the
thread you started the MainLoop in. Combine. Stir. It will be ready when
you get unpredictable behavior.

So. The moral of the story (again) is that you should never touch a gtk#
object from a thread other than the thread in which you did
Gtk.Application.Init () and Gtk.Application.Run () in.

You should *NEVER* need to call EmitRowChanged when you add stuff to the
treemodel.

--Todd