]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/msgdlg.cpp
Add wxFSW_EVENT_ATTRIB wxFileSystemWatcher flag.
[wxWidgets.git] / src / motif / msgdlg.cpp
index 49b7fb846895cdc9f42e369fc438c0324b6cf83a..091d430d9d6406a6c5aaf92e038e70ac93a02e71 100644 (file)
@@ -40,6 +40,7 @@
     #include "wx/settings.h"
 #endif
 
+#include "wx/testing.h"
 #include "wx/motif/private.h"
 
 // ----------------------------------------------------------------------------
@@ -105,6 +106,8 @@ extern "C"
 
 int wxMessageDialog::ShowModal()
 {
+    WX_TESTING_SHOW_MODAL_HOOK();
+
     const long style = GetMessageDialogStyle();
 
     DialogCreateFunction dialogCreateFunction;
@@ -154,9 +157,9 @@ int wxMessageDialog::ShowModal()
 
     Display* dpy = XtDisplay(wParent);
 
-    if (m_backgroundColour.Ok())
+    if (m_backgroundColour.IsOk())
     {
-        wxComputeColours (dpy, & m_backgroundColour, (wxColour*) NULL);
+        wxComputeColours (dpy, & m_backgroundColour, NULL);
 
         XtSetArg(args[ac], XmNbackground, g_itemColors[wxBACK_INDEX].pixel); ac++;
         XtSetArg(args[ac], XmNtopShadowColor, g_itemColors[wxTOPS_INDEX].pixel); ac++;