You have to set your window _Modal_ to block access
of other window. But to stop the execution of the code, I don't know if there is
a Gtk implementation of it. I'm doing this solution. I have a boolean that is
initialized to TRUE when I'm showing the modal window and then I have the
folowing code :
while ((gtk_events_pending()) ||
(bDlgInfoState_X ==
TRUE))
{ gtk_main_iteration(); } This loop process the gtk-event, so the modal
window respond to user interaction. And as soon as the modal window is hidden,
bDlgInfoState_X is set to False, so I'm exiting this loop.
Hope this help :-)
Best regards,
--- Jean-Christophe Berthon Cap Gemini -- Ernst & Young
France Skill IS -- Image Quality Email: Jean-Christophe Berthon cgey com Tel: (+33) 561 31 6639
|