X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/39cdc95fb3819c4b4ed4c41d51dfd770ce5363eb..e3b2f973e8278b4509710a5a06bede1297b317eb:/src/gtk/statbox.cpp diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index a82354bc28..151f04d0fa 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -32,7 +32,7 @@ static void size_allocate(GtkWidget* widget, GtkAllocation* alloc, void*) GtkWidget* label_widget = gtk_frame_get_label_widget(GTK_FRAME(widget)); int w = alloc->width - 2 * widget->style->xthickness - 2 * LABEL_PAD - 2 * LABEL_SIDE_PAD; - if (w < 0) + if (w < 0) w = 0; if (label_widget->allocation.width > w) @@ -48,8 +48,6 @@ static void size_allocate(GtkWidget* widget, GtkAllocation* alloc, void*) // wxStaticBox //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) - wxStaticBox::wxStaticBox() { } @@ -114,7 +112,7 @@ void wxStaticBox::AddChild( wxWindowBase *child ) { // make this window a container of other wxWindows by instancing a wxPizza // and packing it into the GtkFrame: - m_wxwindow = wxPizza::New( 0, this ); + m_wxwindow = wxPizza::New(); gtk_widget_show( m_wxwindow ); gtk_container_add( GTK_CONTAINER (m_widget), m_wxwindow ); }