]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/animate.cpp
make the length of string proportional to the parameter to study test time dependency...
[wxWidgets.git] / src / gtk / animate.cpp
index 4c0f3dde707c738bb45a1b12be4ab4e658fb5da8..67dd5aac993de435dcdaba63c891cbca5eae6fd1 100644 (file)
@@ -22,6 +22,8 @@
     #include "wx/stream.h"
 #endif
 
+#include "wx/wfstream.h"
+
 #include <gtk/gtk.h>
 
 
@@ -209,6 +211,7 @@ bool wxAnimationCtrl::Create( wxWindow *parent, wxWindowID id,
     SetWindowStyle(style);
 
     m_widget = gtk_image_new();
+    g_object_ref(m_widget);
     gtk_widget_show(m_widget);
 
     m_parent->DoAddChild( this );