wxString message;
#if GTK_CHECK_VERSION(2, 6, 0)
bool needsExtMessage = false;
- if ( gtk_check_version(2, 4, 0) == NULL && !m_extendedMessage.empty() )
+ if ( gtk_check_version(2, 6, 0) == NULL && !m_extendedMessage.empty() )
{
message = m_message;
needsExtMessage = true;
int wxMessageDialog::ShowModal()
{
+ // break the mouse capture as it would interfere with modal dialog (see
+ // wxDialog::ShowModal)
+ wxWindow * const win = wxWindow::GetCapture();
+ if ( win )
+ win->GTKReleaseMouseAndNotify();
+
if ( !m_widget )
{
GTKCreateMsgDialog();