Re: [gtk-osx-users] interacting with the global menu blocks the main loop?



On Feb 5, 2013, at 8:23 AM, Antoine Martin <antoine nagafix co uk> wrote:

> Hi,
> 
> I've only just noticed that when the user interacts with the global menu
> bar, all events in the main loop get delayed until after the user has
> exited the menu. This is a big problem for me as my app uses idle_add /
> timeout_add rather a lot.
> I can't remember if this is a new problem or not, but as I've just
> rebuilt everything from scratch, maybe it is.
> Is this a known issue? And if so, is there a workaround?


Not new, nothing has changed in since gtkosxapplication replaced gtk-mac-menu.

I guess that would be because the main thread has passed control to a CFRunLoop -- effectively the same
as a modal dialog. That's unavoidable, because all GUI events have to take place in the same thread. If your
events are time-critical, then you'll need to put them in another thread with its own gmainloop. 

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]