]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobox.cpp
scope added for keyboard handler
[wxWidgets.git] / src / motif / radiobox.cpp
index 6073ff07c36b54a1b890eb4bb75dfc42277fbd83..365fe2b3360af51fdf576b29b8f9137c91eb007e 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "radiobox.h"
 #endif
 
@@ -377,7 +377,7 @@ void wxRadioBox::ChangeBackgroundColour()
 {
     wxWindow::ChangeBackgroundColour();
 
-    int selectPixel = wxBLACK->AllocColour(wxGetDisplay());
+    int selectPixel = wxBLACK->AllocColour(XtDisplay((Widget)m_mainWidget));
 
     int i;
     for (i = 0; i < m_noItems; i++)