[Gtk-sharp-list] GTK / ThreadNotify

Miguel de Icaza miguel@ximian.com
Sat, 30 Apr 2005 00:26:52 -0400


Hello,

> 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).

Is this on Windows?   I heard that apparently there is a problem with
Idle events not being dispatched on Windows.

> 
> Thanks.
> 
> Code :
> 
> in the constructor :
> addLineNotify = 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 = line;
>    this.addLineNotify.WakeupMain();
> }
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 
-- 
Miguel de Icaza <miguel@ximian.com>