+ else
+ {
+ // GTK+ doesn't have a "typeless" msg box, so try to auto detect...
+ type = m_dialogStyle & wxYES ? GTK_MESSAGE_QUESTION : GTK_MESSAGE_INFO;
+ }
+
+ wxString message;
+#if GTK_CHECK_VERSION(2, 6, 0)
+ bool needsExtMessage = false;
+ if ( gtk_check_version(2, 6, 0) == NULL && !m_extendedMessage.empty() )
+ {
+ message = m_message;
+ needsExtMessage = true;
+ }
+ else // extended message not needed or not supported
+#endif // GTK+ 2.6+
+ {
+ message = GetFullMessage();
+ }
+
+ m_widget = gtk_message_dialog_new(parent,
+ GTK_DIALOG_MODAL,
+ type,
+ buttons,
+ "%s",
+ (const char*)wxGTK_CONV(message));
+
+#if GTK_CHECK_VERSION(2, 6, 0)
+ if ( needsExtMessage )
+ {
+ gtk_message_dialog_format_secondary_text
+ (
+ (GtkMessageDialog *)m_widget,
+ "%s",
+ (const char *)wxGTK_CONV(m_extendedMessage)
+ );
+ }
+#endif // GTK+ 2.6+
+#endif // wxUSE_LIBHILDON/!wxUSE_LIBHILDON
+
+ g_object_ref(m_widget);