]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/msgdlg.cpp
Select the entire spin control contents when changing its value.
[wxWidgets.git] / src / motif / msgdlg.cpp
index 5a7a63b83a8e79f0e5432ff548a5319124435cef..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,7 +157,7 @@ int wxMessageDialog::ShowModal()
 
     Display* dpy = XtDisplay(wParent);
 
-    if (m_backgroundColour.Ok())
+    if (m_backgroundColour.IsOk())
     {
         wxComputeColours (dpy, & m_backgroundColour, NULL);