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.

Were you making use of the gtk.threads_enter() and gtk.threads_leave() calls to protect GTK calls outside of the main thread/signal handlers?

0
Posted

Were you making use of the gtk.threads_enter() and gtk.threads_leave() calls to protect GTK calls outside of the main thread/signal handlers?

0

If not, that would explain the problems you ran into. GTK is not completely thread safe, so in some cases you need to acquire the GDK thread lock. Note that you can assume the GDK thread lock is acquired within signal handlers, but it isn’t within idle, timeout and IO handlers.

Related Questions

What is your question?

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

Experts123