Question about Modal Dialog in Gtk application

Posted by michael on Stack Overflow See other posts from Stack Overflow or by michael
Published on 2010-04-14T23:08:26Z Indexed on 2010/04/14 23:13 UTC
Read the original article Hit count: 208

Filed under:
|
|

Hi,

In Gtk application, there is 1 main loop which listens for events (e.g. mouse click, keyboard, etc). And when a modal dialog popup, the main loop is blocked until user clicks 'OK' in the dialog, right? (i.e. nothing will happen when user clicks on the main window). Is that correct?

My question is how can firefox did its modal dialog so that it can: 1. when 1 have 2 Firefox windows 2. one of them has a modal dialog 3. other one is still interactive

If both window shares the same gtk main loop, how is that possible? Please help me understanding this.

Thank you.

© Stack Overflow or respective owner

Related posts about gtk

Related posts about gtk2