[mohamed: Re: Just one active window]

2001-07-24 Thread Mohamed
HI you have to use gdk_widget_grab(your window) and gdk_pointer_grab (..); this will grab all kind of mouse event to your window . to make gtk stop the execution of the current code and wait until you destroy your modal window, you have to start a new event loop with : gtk_main (); and don

Just one active window

2001-07-24 Thread Pedro Zorzenon Neto
Hi list, The program that I'm developing has some critical situations that I want it to show a message and the user will be able just to click on buttons in this message window. All other windows in this program can't get focus. I'm doing like this: GtkWidget *winmsg1; winmsg1 = gtk_win