| View previous topic :: View next topic |
| Author |
Message |
Ndru
Joined: 17 Dec 2005 Posts: 5
|
Posted: Wed Feb 15, 2006 2:04 pm Post subject: Update/event handling from within callback functions |
|
|
Is there a convenient way to handle events and/or gui updates from within a callback function?
I need to create an application containing a long running recursive callback function and still have user interface updates without returning to the main loop. I also need to temporarily suspend the recursion at a certain point until user input is provided.
Can someone help me out with ideas of how to achieve this or let me know of possible setbacks i'm likely to encounter? |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Wed Feb 15, 2006 2:07 pm Post subject: |
|
|
| Code: | | while(Gtk::events_pending()) { Gtk::main_iteration(); } |
|
|
| Back to top |
|
 |
Ndru
Joined: 17 Dec 2005 Posts: 5
|
Posted: Wed Feb 15, 2006 3:38 pm Post subject: |
|
|
Thanks for the quick answer.
It worked like a charm. |
|
| Back to top |
|
 |
|