- int w = m_buttons.GetCount() * 100;
- if (message_size.x > w) w = message_size.x;
- int space = w / (m_buttons.GetCount()*2);
-
- int n = 0;
- wxNode *node = m_buttons.First();
- while (node)
+ 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;
+
+ 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)