Re: Is there a way to make this work?



Hmm the age old problem ;)

        I would add a thread to do the heavy stuff
and an IO channel for the child thread to comunicate
with the main GUI thread and update the clist with 
the data read in the g_io_channel_add_watch callback.

        But you could do a number of things. just remember
that only one thread is allowed to update the GUI.

        -Tristan

Thijs Assies wrote:

Hi, i've created a program, wich gets an XML file and stores the stuff
into a clist. But when it gets the XML, and parses it. The program
freezes. I can solve this using fork. But i cant update the clist within
a fork!

Is there a way to keep the program running while getting ad parsing the XML?

thx.

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]