]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/gauge.cpp
Should work for wxMSW, now. Cannot test this myself, though.
[wxWidgets.git] / src / gtk1 / gauge.cpp
index eb0f339bb0b63fb6f6139181cff59e9af389632c..ff974edef9af2ff96b6c28b6ce8ae8a613aa4d0a 100644 (file)
@@ -12,6 +12,8 @@
 #endif
 
 #include "wx/gauge.h"
+#include "gdk/gdk.h"
+#include "gtk/gtk.h"
 
 //-----------------------------------------------------------------------------
 // wxGauge
@@ -35,9 +37,7 @@ bool wxGauge::Create( wxWindow *parent, wxWindowID id,  int range,
   
   m_widget = gtk_progress_bar_new();
   
-  m_parent->AddChild( this );
-
-  (m_parent->m_insertCallback)( m_parent, this );
+  m_parent->DoAddChild( this );
   
   PostCreation();