Re: Use a GtkMessageBox in a GThread under Win32

gtk_dialog_run() blocks all execution until the user responds, so don't
use it.  Just show the dialog and use a callback function to evaluate
user response and to ultimately destroy the dialog.

Especially on Win32, not even that will work if done from another
thread than the "main" thread that runs the GLib main loop. Call
g_timeout_add_full from other threads to schedule GTK+ interaction in
the main thread.


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