[Gtk-sharp-list] AsyncCallback + Gtk?
Gonzalo Paniagua Javier
gonzalo@ximian.com
Sat, 10 Apr 2004 07:42:01 +0200
El jue, 08-04-2004 a las 21:34, Matt Eaton escribió:
> I did Gdk.Threads.Init() before Application.Init. Is that correct?
>
> More importantly (since you don't recommend the first approach), how
> would you go about using sockets asychronously? I don't see a
> Gdk.Input.Add and even if I did it wouldn't take Socket.BeginConnect()
> would it?
It's GLib.Idle.Add.
Take a look at monodoc browser source code as an example on how to do
asynchronous stuff while updating the UI. It uses Gtk.ThreadNotify.
-Gonzalo