]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbox.cpp
buttons now become default when they have focus
[wxWidgets.git] / src / gtk / statbox.cpp
index c4d3cb49edafdc7a69dbe1c89ae06a6400f70f54..84fd9673ffdb062ef414a56c3d7b72173f728d18 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "wx/statbox.h"
 
+#if wxUSE_STATBOX
+
 #include "gdk/gdk.h"
 #include "gtk/gtk.h"
 
@@ -45,9 +47,7 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
     
     m_widget = gtk_frame_new(m_label.mbc_str());
 
-    m_parent->AddChild( this );
-
-    (m_parent->m_insertCallback)( m_parent, this );
+    m_parent->DoAddChild( this );
   
     PostCreation();
 
@@ -74,3 +74,5 @@ void wxStaticBox::ApplyWidgetStyle()
     SetWidgetStyle();
     gtk_widget_set_style( m_widget, m_widgetStyle );
 }
+
+#endif