]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbox.cpp
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / src / gtk / statbox.cpp
index a5314ce4df5d875bb04487ee1db5314d93886596..c8c14a446a2afbae0b4cbe6dde4376e8bee822be 100644 (file)
@@ -36,7 +36,7 @@ extern "C" {
 static void
 gtk_frame_size_allocate (GtkWidget     *widget,
                          GtkAllocation *allocation,
-                         wxStaticBox *p)
+                         wxStaticBox * WXUNUSED(box))
 {
     GtkFrame *frame = GTK_FRAME (widget);
 
@@ -90,13 +90,11 @@ bool wxStaticBox::Create( wxWindow *parent,
                           long style,
                           const wxString& name )
 {
-    m_needParent = TRUE;
-
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
     {
         wxFAIL_MSG( wxT("wxStaticBox creation failed") );
-        return FALSE;
+        return false;
     }
 
     m_widget = GTKCreateFrame(label);