Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I force updates to the application windows during a long callback or other internal operation?

0
Posted

How can I force updates to the application windows during a long callback or other internal operation?

0

If you have a long-running callback or internal operation that tries to modify the application windows incrementally during its execution, you will notice that this doesn’t happen; the windows of your app freeze for the duration. This is by design: all gtk events (including window refreshing and updates) are handled in the mainloop, and while your application or callback code is running the mainloop can’t handle window update events. Therefore nothing will happen in the application windows.

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.