+ gtk_frame_set_label_align(GTK_FRAME(m_widget), xalign, 0.5);
+
+#ifndef __WXGTK3__
+ if (gtk_check_version(2, 12, 0))
+ {
+ // we connect this signal to perform label-clipping as GTK >= 2.12 does
+ g_signal_connect(m_widget, "size_allocate", G_CALLBACK(size_allocate), NULL);
+ }
+#endif
+
+ return true;
+}
+
+void wxStaticBox::AddChild( wxWindowBase *child )
+{
+ if (!m_wxwindow)
+ {
+ // make this window a container of other wxWindows by instancing a wxPizza
+ // and packing it into the GtkFrame:
+ m_wxwindow = wxPizza::New();
+ gtk_widget_show( m_wxwindow );
+ gtk_container_add( GTK_CONTAINER (m_widget), m_wxwindow );
+ }
+
+ wxWindow::AddChild( child );
+}
+
+void wxStaticBox::SetLabel( const wxString& label )
+{
+ wxCHECK_RET( m_widget != NULL, wxT("invalid staticbox") );