The problem is that while testing to see if it's OK to save the user's
data,
the program discovers a minor problem.
In the "curses" version of the program, it is simple to ask the user if
he wants
to ignore the minor problem and save the data anyway. This is done
without
disrupting the flow of the program...
if ( Confirm ( "Hey buddy, are you sure? (Y/N)" ))
{
... do other processing and testing and perhaps more confirming...
...
Write the data to disk;
elseQuote:}
return;
I can see only one ugly way to do this in GTK. That is to create call a
new
program that will ask the question and return a value. It is trivial to
block
execution of the main program while the child program is waiting for a
reply.
I have looked at the GIMP source code to see how it does this sort of
thing.
But I don't see how its solution will work for me.
(So, it looks like I'm writing a program just to do Confirmation Windows
until
such time as I can learn of a better idea).
--
Hugh McCurdy