[9071] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: one function takes the control
daemon@ATHENA.MIT.EDU (Johannes Keukelaar)
Tue Oct 6 05:52:17 1998
To: gtk-list@redhat.com
From: johannes@nada.kth.se (Johannes Keukelaar)
In-reply-to: Your message of "Mon, 05 Oct 1998 20:11:29 CDT."
<Pine.OSF.3.91-FP.981005201013.457D-100000@col2.telecom.com.co>
Date: Tue, 06 Oct 1998 11:51:44 +0200
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
//I need one function that launch a dialog and only returns when this dialog
//have been closed. The function is something like this:
You'll want to make the dialog modal (with gtk_grab_add), connect your signal
handlers, recursively call gtk_main, then call gtk_main_quit from one of your
signal handlers (when the user clicks the ok or cancel button, for example),
and then the call to gtk_main will return (eventually). You'll then also want
to call gtk_grab_remove, otherwise the rest of your application will remain
dead. I hope that's more or less clear. (And shouldn't this be in the FAQ, more
extensively than the answer to 4.11?)
Regards,
Johannes.
--
"I hunt, therefor I am" - Metallica
How do I connect to that real-life thing I keep hearing about?
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null