From 95a56e2aea8dd8299b390d88d685e2c9dd3d80ba Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sat, 24 Jan 2009 10:00:38 +0000 Subject: [PATCH] add missing wxABI_VERSION checks for previously-committed wxAnimation ctors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/animate.h | 2 ++ include/wx/gtk/animate.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/wx/generic/animate.h b/include/wx/generic/animate.h index 33a3a84c74..967fe18d30 100644 --- a/include/wx/generic/animate.h +++ b/include/wx/generic/animate.h @@ -23,9 +23,11 @@ WX_DECLARE_LIST_WITH_DECL(wxAnimationDecoder, wxAnimationDecoderList, class WXDL class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase { public: +#if wxABI_VERSION >= 20810 wxAnimation() {} wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY) { LoadFile(name, type); } +#endif virtual bool IsOk() const { return m_refData != NULL; } diff --git a/include/wx/gtk/animate.h b/include/wx/gtk/animate.h index 67a5f6d1b3..461b9fecac 100644 --- a/include/wx/gtk/animate.h +++ b/include/wx/gtk/animate.h @@ -27,8 +27,10 @@ typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter; class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase { public: +#if wxABI_VERSION >= 20810 wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY) : m_pixbuf(NULL) { LoadFile(name, type); } +#endif wxAnimation(GdkPixbufAnimation *p = NULL); wxAnimation(const wxAnimation&); ~wxAnimation() { UnRef(); }