]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbox.cpp
Return NULL from wxWindow::GetCapture() when the capture is being lost.
[wxWidgets.git] / src / gtk / statbox.cpp
index b071ecd71104597861b961b33870bf5a65f35024..6d0a9b0db1661274c4a64c5aef6d0788354dbd7c 100644 (file)
@@ -108,6 +108,8 @@ bool wxStaticBox::Create( wxWindow *parent,
     }
 #endif
 
+    m_container.DisableSelfFocus();
+
     return true;
 }
 
@@ -122,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 )
@@ -154,7 +156,6 @@ wxStaticBox::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
     return GetDefaultAttributesFromGTKWidget(gtk_frame_new(""));
 }
 
-
 void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
 {
     *borderTop = GetCharHeight();