GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Dec 23, 2014 1:36 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to keep the UI window active?
PostPosted: Fri Feb 08, 2008 1:26 pm 
Offline
Familiar Face

Joined: Sun Jan 20, 2008 3:38 pm
Posts: 6
Hi,

i am making an application using GTK. My question is, After pressing a button, the program start do very long calculation in some loop. How can I keep the UI window active while this loop?

Thanks
Oren


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 08, 2008 4:47 pm 
Offline
Familiar Face

Joined: Wed Dec 19, 2007 5:06 pm
Posts: 13
Run the loop in a separate thread.

Just don't try to create any widgets in anything other than the main thread.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 26, 2008 6:23 pm 
Offline
Familiar Face

Joined: Sun Jan 20, 2008 3:38 pm
Posts: 6
Thanks,
It works using new thread.
Oren


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group