|
|
| Author |
Message |
|
|
oren_peles Familiar Face
Joined: 20 Jan 2008 Posts: 5
|
Posted: Fri Feb 08, 2008 1:26 pm Post subject: How to keep the UI window active? |
|
|
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
|
Posted: Fri Feb 08, 2008 4:47 pm Post subject: |
|
|
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
|
Posted: Tue Feb 26, 2008 6:23 pm Post subject: |
|
|
Thanks,
It works using new thread.
Oren |
|
| Back to top |
|
 |
|