Re: Question about modal dialog in gtk application

2010-04-15 Thread silverburgh
On Wed, Apr 14, 2010 at 3:39 PM, Nicola Fontana wrote: > Il giorno Wed, 14 Apr 2010 14:27:21 -0700 > silverburgh ha scritto: > >> Can you please help me what happens if I use 'gtk_set_transient_for to >> mark it "modal to only one window"' under the hood. >> >> Normally (as far as what I know), t

Re: Question about modal dialog in gtk application

2010-04-14 Thread Nicola Fontana
Il giorno Wed, 14 Apr 2010 14:27:21 -0700 silverburgh ha scritto: > Can you please help me what happens if I use 'gtk_set_transient_for to > mark it "modal to only one window"' under the hood. > > Normally (as far as what I know), there is 1 gtk main thread listen > for all ui events (mouse clic

Re: Question about modal dialog in gtk application

2010-04-14 Thread silverburgh
Jim, Thank you. Can you please help me what happens if I use 'gtk_set_transient_for to mark it "modal to only one window"' under the hood. Normally (as far as what I know), there is 1 gtk main thread listen for all ui events (mouse click, resize etc). And when a moral dialog is poped up, that ma

Re: Question about modal dialog in gtk application

2010-04-11 Thread Jim George
You can use gtk_widget_show to bring up your dialog, and then use gtk_set_transient_for to mark it "modal to only one window", to get behavior similar to firefox. -Jim On Sun, Apr 11, 2010 at 10:36 AM, silverburgh wrote: > On Sun, Apr 11, 2010 at 11:04 AM, Nicola Fontana wrote: >> Il giorno Sun,

Re: Question about modal dialog in gtk application

2010-04-11 Thread silverburgh
On Sun, Apr 11, 2010 at 11:04 AM, Nicola Fontana wrote: > Il giorno Sun, 11 Apr 2010 10:37:18 -0500 > silverburgh ha scritto: > >> Hi, >> >> In my gtk application, I can create 2 windows. >> But when I open a dialog in one of my window using gtk_dialog_run(), >> why the other window is frozen? >

Re: Question about modal dialog in gtk application

2010-04-11 Thread silverburgh
Thanks. I am already using GTK_DIALOG. This is the code: GtkWidget* mWindow; gtk_widget_show_all(mWindow); gint response = gtk_dialog_run(GTK_DIALOG(mWindow)); On Sun, Apr 11, 2010 at 10:52 AM, Manu TM wrote: > Just don't use GTK_DIALOG_MODAL in gtk_dialog_new() > > Emmanuel T

Re: Question about modal dialog in gtk application

2010-04-11 Thread Nicola Fontana
Il giorno Sun, 11 Apr 2010 10:37:18 -0500 silverburgh ha scritto: > Hi, > > In my gtk application, I can create 2 windows. > But when I open a dialog in one of my window using gtk_dialog_run(), > why the other window is frozen? Because this is the intended behavior of gtk_dialog_run(): http://l

Re: Question about modal dialog in gtk application

2010-04-11 Thread Manu TM
Just don't use GTK_DIALOG_MODAL in gtk_dialog_new() Emmanuel Thomas-Maurin silverburgh wrote: Hi, In my gtk application, I can create 2 windows. But when I open a dialog in one of my window using gtk_dialog_run(), why the other window is frozen? How can I code it so that one modal dialog do