Re: Windows like MessageBox() in gtk?



On Mon, 2007-05-14 at 16:14 +0000, 999alfred comcast net wrote:
> can anybody point me to widget that behaves like the Windows MessageBox() function. Puts a modal dialog up with the header and body set to the suppiled text nd an "Ok" button.

you want the GtkMessageDialog widget:

  http://developer.gnome.org/doc/API/2.0/gtk/GtkMessageDialog.html

just create one and use gtk_dialog_run() with it (it will automatically
set modality).

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,  E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net




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