Re: How to wait on a modal dialog



Jonathan Hayward wrote:
In converting a non-event-driven application which works off of being able to wait for user input before continuing, I want to put up a modal dialog, and continue when I have the user's input. I have interpreted this as: Display the modal dialog, wait for an answer (using usleep), and return a value. (Is the best approach?)

Um,
    in gtk+ try gtk_dialog_run();

(this will return when the dialog is finished,
it will also not lockup your application)

Cheers,
                     -Tristan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]