]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobox.cpp
rebaked after adding new string-related headers
[wxWidgets.git] / src / gtk / radiobox.cpp
index 938fe515ca061bb7452faca17e9d88b033585244..911aa6ccaba0fd0c5fb06b055db6164d13d8b14a 100644 (file)
@@ -219,7 +219,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxRadioBox,wxControl)
 void wxRadioBox::Init()
 {
     m_needParent = true;
-    m_acceptsFocus = true;
 
     m_hasFocus =
     m_lostFocus = false;
@@ -253,6 +252,12 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title,
 
     m_widget = GTKCreateFrame(title);
     wxControl::SetLabel(title);
+    if ( HasFlag(wxNO_BORDER) )
+    {
+        // If we don't do this here, the wxNO_BORDER style is ignored in Show()
+        gtk_frame_set_shadow_type(GTK_FRAME(m_widget), GTK_SHADOW_NONE);
+    }
+
 
     // majorDim may be 0 if all trailing parameters were omitted, so don't
     // assert here but just use the correct value for it