Re: How to wait on a modal dialog

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

 



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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux