- m_widget = gtk_message_dialog_new(m_parent ?
- GTK_WINDOW(m_parent->m_widget) : NULL,
+ 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.4+
+ {
+ message = GetFullMessage();
+ }
+
+ m_widget = gtk_message_dialog_new(m_parent ? GTK_WINDOW(m_parent->m_widget)
+ : NULL,