]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/animatecmn.cpp
don't try to add emission hook if GtkWidget type is not loaded
[wxWidgets.git] / src / common / animatecmn.cpp
index d3b69867f56762ea408d661f15e97f41b48dd933..e9c0b8678a2d85753c23d81f47ee3cbe921081e7 100644 (file)
 #if wxUSE_ANIMATIONCTRL
 
 #include "wx/animate.h"
+#include "wx/bitmap.h"
 
 const wxChar wxAnimationCtrlNameStr[] = wxT("animationctrl");
 
 // global object
 wxAnimation wxNullAnimation;
 
-//wxIMPLEMENT_HANDLER_LIST_MANAGER(wxAnimation,
 IMPLEMENT_ABSTRACT_CLASS(wxAnimationBase, wxObject)
 IMPLEMENT_ABSTRACT_CLASS(wxAnimationCtrlBase, wxControl)
 
+void wxAnimationCtrlBase::SetInactiveBitmap(const wxBitmap &bmp)
+{ 
+    m_bmpStatic = bmp; 
+    m_bmpStatic.UnShare();
+}
 
 
 #endif      // wxUSE_ANIMATIONCTRL