Hello,As for me I'd prefer this way - its simple to realize Cancel/Apply/Ok behaviuor.
I would like know your opinion about one choice whose for me is without response.
For you, what is the best code design to use when you make a dialog box. More specify about how get the data ?
For me, I see 3 solutions :
1 - The dialog box handle directly the data when the validation is done.
Drawback : many global variable. And dialog box less reusable.
2 - The dialog box emit signal whose send data to callback. Avantage : the data is handle out of dialog box.
3-
Call a function whose launch the dialog box. When she closed then the
function return data.
Drawback : application is blocked while the dialog box isn'tApplication is not almost blocked (expose, for example, runs just fine) but widgets can't handle user's
destroy. And, obligation to use thread.
input. In case you want to interact with a widgets in parent's window why not to use another window
instead of dialog (which is supposed to be non-resizeable,modal and transient) ?
Olexiy
_______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list