[Gtk-sharp-list] GTK / ThreadNotify

Fabien Penso Fabien Penso <fabienpenso@gmail.com>
Fri, 29 Apr 2005 16:07:32 +0200


Hi.

I have tried to send this on the mono devel list but I guess that was
the wrong list.

Can someone confirm WakeupMain() is supposed to work even I don't have
focus on the GTK application ? My example doesn't and works only when
I move the mouse over the gtk application (the method addLineT isn't
called at all).

Thanks.

Code :

in the constructor :
addLineNotify =3D new ThreadNotify (new ReadyEvent (addLineT));

private void addLineT() {
// Something to update a treeview using this.line_tobe_added.
}

public void addLine(String line) {
   this.line_tobe_added =3D line;
   this.addLineNotify.WakeupMain();
}