Re: Dialog boxes
- From: "Eric M. Monsler" <emonsler beamreachnetworks com>
- To: Chris Garrett <garrett91 hotmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Dialog boxes
- Date: Fri, 25 May 2001 13:35:59 -0700
Chris Garrett wrote:
(snip)
window_function {
draw widgets in window
link callback functions to widgets
link dialog callback to the closing of the window
}
dialog_cb {
draw buttons and text
link callback to ok button
link callback to cancel button
}
cancel_cb {
close dialog
}
ok_cb {
close dialog
close window
}
The tricky thing, in above, is passing enough state information to ok_cb
to close up the window and the underlying code structure. To do so you
basically have one g_pointer, specified when doing the linking you refer
to above.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]