GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to keep the UI window active?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
oren_peles
Familiar Face


Joined: 20 Jan 2008
Posts: 5

PostPosted: Fri Feb 08, 2008 1:26 pm    Post subject: How to keep the UI window active? Reply with quote

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
Back to top
Lindley
Familiar Face


Joined: 19 Dec 2007
Posts: 13

PostPosted: Fri Feb 08, 2008 4:47 pm    Post subject: Reply with quote

Run the loop in a separate thread.

Just don't try to create any widgets in anything other than the main thread.
Back to top
oren_peles
Familiar Face


Joined: 20 Jan 2008
Posts: 5

PostPosted: Tue Feb 26, 2008 6:23 pm    Post subject: Reply with quote

Thanks,
It works using new thread.
Oren
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP