Re: Nesting gtk_main ?

2010-02-01 Thread Martin Vejnár
On 2/1/2010 12:12 PM, jcup...@gmail.com wrote: I have a pair of classes I use in my app which implement a window / dialog tree. Thank you, I looked them over, but being new to GTK I didn't fully grasp how the classes work. I've already solved the problem by putting the windows into separate

Re: Nesting gtk_main ?

2010-02-01 Thread Martin Vejnár
On 2/1/2010 2:56 PM, Chris Vine wrote: Martin Vejnár wrote: How do I make the dialog's parent ignore user input? Event if I call gtk_window_set_transient_for(dialog, parent), the parent remains clickable. If you want this, then why not call gtk_dialog_run() and have a blocking dialog?

Re: Nesting gtk_main ?

2010-02-01 Thread Martin Vejnár
On 2/1/2010 2:26 AM, Andrew Cowie wrote: On Sun, 2010-01-31 at 19:14 +0100, Martin Vejnár wrote: In electronics design, it is common to have two independent windows, one which shows the schematics and the other shows the circuit board. You don't want dialog boxes pertaining to one wind

Re: Nesting gtk_main ?

2010-02-01 Thread Martin Vejnár
On 1/31/2010 7:22 PM, Tadej Borovšak wrote: 2010/1/31 Martin Vejnár: On 1/30/2010 10:30 PM, jcup...@gmail.com wrote: A single gtk_main will run multiple independent windows. You only need to nest them if you want a modal dialog. What should you do if you want to run two dialog boxes at the

Re: Nesting gtk_main ?

2010-01-31 Thread Martin Vejnár
On 1/30/2010 10:30 PM, jcup...@gmail.com wrote: On 30 January 2010 18:48, Siddu wrote: Assuming i have two different windows window1 and window2 can the events or signals on each of them be processed concurrently with two gtk_main( one for window1 and other for window2) being isolated under th

Multiple independent modal dialogs

2010-01-13 Thread Martin Vejnár
Hi, I have a short program (below) that displays two windows, each with a button. Clicking the button pops up a modal dialog (in this case a file chooser, but the type of the dialog does not really matter). I would like the two windows to be completely independent, i.e. clicking the button i