X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc44eff0235c5f30940f32ccc6d9d82a236e7d2..32c2b16dac5b1a4f6f632d59256f24d43008a972:/src/gtk/statbox.cpp diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index 5cb14390ff..6d0a9b0db1 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -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 ) @@ -152,10 +153,9 @@ void wxStaticBox::GTKWidgetDoSetMnemonic(GtkWidget* w) wxVisualAttributes wxStaticBox::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) { - return GetDefaultAttributesFromGTKWidget(gtk_frame_new); + return GetDefaultAttributesFromGTKWidget(gtk_frame_new("")); } - void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const { *borderTop = GetCharHeight();