]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbox.cpp
Fix bug with not selecting wxAuiNotebook page when its child was focused.
[wxWidgets.git] / src / gtk / statbox.cpp
index 139a678df29fe90441e902deb81e99e856562f11..6d0a9b0db1661274c4a64c5aef6d0788354dbd7c 100644 (file)
@@ -2,7 +2,6 @@
 // Name:        src/gtk/statbox.cpp
 // Purpose:
 // Author:      Robert Roebling
-// Id:          $Id$
 // Copyright:   (c) 1998 Robert Roebling
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -109,6 +108,8 @@ bool wxStaticBox::Create( wxWindow *parent,
     }
 #endif
 
+    m_container.DisableSelfFocus();
+
     return true;
 }
 
@@ -123,7 +124,7 @@ void wxStaticBox::AddChild( wxWindowBase *child )
         gtk_container_add( GTK_CONTAINER (m_widget), m_wxwindow );
     }
 
-    wxWindow::AddChild( child );
+    wxStaticBoxBase::AddChild(child);
 }
 
 void wxStaticBox::SetLabel( const wxString& label )
@@ -155,7 +156,6 @@ wxStaticBox::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
     return GetDefaultAttributesFromGTKWidget(gtk_frame_new(""));
 }
 
-
 void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
 {
     *borderTop = GetCharHeight();