How do I make my window modal? / How do I make a single window active?

GTK+ FAQ
<<< Previous | Development with GTK+: general questions | Next >>>

# How do I make my window modal? / How do I make a single window active?

After you create your window, do `gtk_grab_add(my_window)`. And after closing the window do `gtk_grab_remove(my_window)`.

<<< Previous | Home | Next >>>
Is it possible to get some text displayed which is truncated to fit inside its allocation? | Up | Why doesn't my widget (e.g. progressbar) update? [GTK 2.x]