GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Aug 28, 2014 11:14 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: button event release
PostPosted: Mon May 21, 2007 8:30 am 
Offline
Familiar Face

Joined: Wed Mar 14, 2007 9:02 am
Posts: 9
Hi,

I have button pressing which a lot of events take place. My problem is until the event returns after pressing the button the complete application freezes. Is there way that the button gets released and these steps take place.

thanks for your replies in advance,

bluezapper


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 21, 2007 7:42 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
What are these events doing? Maybe a simple:

Code:
while (gtk_events_pending()) gtk_main_iteration();


in between events that take some time to process.

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 22, 2007 7:10 am 
Offline
Familiar Face

Joined: Wed Mar 14, 2007 9:02 am
Posts: 9
Actually, When I press the button I do some socket connections and get back the data. As it takes some time to open the sockets I want to show the status to the user in a text view. The text_view gets only updated after the button release.

I want to do multi threading. While one event opens the socket, other should update the text_view and show it to the user.

Is it possible to do this on GTK. I have done a lot of Java programs where its easy.

thanks

bluezapper :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group