+ if (m_dialogStyle & wxICON_EXCLAMATION)
+ type = GTK_MESSAGE_WARNING;
+ else if (m_dialogStyle & wxICON_ERROR)
+ type = GTK_MESSAGE_ERROR;
+ else if (m_dialogStyle & wxICON_INFORMATION)
+ type = GTK_MESSAGE_INFO;
+ else if (m_dialogStyle & wxICON_QUESTION)
+ type = GTK_MESSAGE_QUESTION;
+ else
+ wxFAIL_MSG( _T("Unknown wxMessageDialog type") );
+
+ dlg = gtk_message_dialog_new(m_parent ?
+ GTK_WINDOW(m_parent->m_widget) : NULL,
+ GTK_DIALOG_MODAL,
+ type, buttons,
+ "%s", (const char*)wxGTK_CONV(m_message));
+ if (m_caption != wxMessageBoxCaptionStr)
+ gtk_window_set_title(GTK_WINDOW(dlg), wxGTK_CONV(m_caption));
+
+ if (m_dialogStyle & wxYES_NO)