gtk_input_add set the priority to the default(in gdk). When 
reading from a busy socket, the screen update is stopped because
the painting event has a lower priority, only when the
network activaty stops, the window will suddenly
update in a second.

g_io_add_watch_full provide a watch on io channel with
a priority. Besides, there is a bug for gtk+ to deprecate
the gtk_input_add and friends.

http://bugzilla.gnome.org/show_bug.cgi?id=71596

I am currently doing a main_iterate after a socket read,
but this approache make my app. 10x slower.

-- 
Best regard
hashao
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to