]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/msgdlg.cpp
Disable Unity global menu while native modal dialogs are shown in wxGTK.
[wxWidgets.git] / src / gtk / msgdlg.cpp
index b01e51b13e95639306c7c1f508b4b20fc2fcc575..2c561dfca3caf56f7131b14856e965b4a4ce4c2d 100644 (file)
@@ -30,6 +30,7 @@
 #include "wx/gtk/private.h"
 #include "wx/gtk/private/messagetype.h"
 #include "wx/gtk/private/mnemonics.h"
+#include "wx/gtk/private/dialogcount.h"
 
 #if wxUSE_LIBHILDON
     #include <hildon-widgets/hildon-note.h>
@@ -295,6 +296,8 @@ int wxMessageDialog::ShowModal()
     if (m_parent)
         gtk_window_present( GTK_WINDOW(m_parent->m_widget) );
 
+    wxOpenModalDialogLocker modalLocker;
+
     gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
     GTKDisconnect(m_widget);
     gtk_widget_destroy(m_widget);