On Tue, 19 Dec 2006, Fabricio Rocha wrote:

>       Is there a way of creating a window which, when shown, will cause
> the caller function to sit and wait until it gives a result?

Blocking?  If I'm understanding you right, you can do that by 
making a secondary call to gtk_main() -- then call gtk_main_quit() 
when you're good and ready.  The function that calls gtk_main() 
will not return till gtk_main_quit() is called.

If you want to prevent user interation in the meantime you'll also 
have to make the dialog-like window modal, though that is a 
separate issue.

-- 
Allin Cottrell
Department of Economics
Wake Forest University, NC
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to