button event release



Hello all,

I have a question about button release event. I have a GTK_PANE window. 

When I press the button I open a socket connection and get back some data from it. Since the opening of 
socket and getting the data back takes some time I want to display some status messages to the user in a 
text_view which is added to the lower Pane.

My problem is until the button releases my whole application freezes and  text_view gets updated after 
release. 

How do I start two threads in Gtk so that one thread opens the socket and other thread updates the text_view.

Thanks for having the patience to read my long complete email,

regards,

Bluezapper.

 
---------------------------------
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.


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