Re: Question about modal dialog in gtk application
- From: Jim George <jimgeorge gmail com>
- To: silverburgh <silverburgh meryl gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Question about modal dialog in gtk application
- Date: Sun, 11 Apr 2010 10:41:12 -0600
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.
On Sun, Apr 11, 2010 at 10:36 AM, silverburgh
<silverburgh meryl gmail com> wrote:
On Sun, Apr 11, 2010 at 11:04 AM, Nicola Fontana <ntd entidi it> wrote:
Il giorno Sun, 11 Apr 2010 10:37:18 -0500
silverburgh <silverburgh meryl gmail com> ha scritto:
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():
How can I code it so that one modal dialog do not freeze the other window?
I don't know how to make a modal dialog that does not freeze the
other windows but if you want a non-modal dialog you can use
gtk_widget_show() instead of gtk_dialog_run().
But how can Firefox on linux implements that?
If I have a popup alert in 1 Firefox window, it does not freeze the
other Firefox window and I can scroll up and down in the other window.
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
] [Thread Prev