]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/button.cpp
Test for image conversion correctness.
[wxWidgets.git] / src / gtk / button.cpp
index 249465f3669ec773e9e72c3057e012821561e319..db5235be661500165d94de677e1d3529143d6129 100644 (file)
@@ -71,6 +71,10 @@ bool wxButton::Create(  wxWindow *parent, wxWindowID id, const wxString &label,
   gtk_signal_connect( GTK_OBJECT(m_widget), "clicked",
     GTK_SIGNAL_FUNC(gtk_button_clicked_callback), (gpointer*)this );
 
+  m_parent->AddChild( this );
+
+  (m_parent->m_insertCallback)( m_parent, this );
+  
   PostCreation();
   
   SetBackgroundColour( parent->GetBackgroundColour() );