X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9180b5352f9d5b5bcccee563e9b3c0f68c4f1303..dc683654a1af7f02ee87623a713a7147bcb6dd84:/src/common/mediactrlcmn.cpp diff --git a/src/common/mediactrlcmn.cpp b/src/common/mediactrlcmn.cpp index 51ba32f6c8..1955ac10ce 100644 --- a/src/common/mediactrlcmn.cpp +++ b/src/common/mediactrlcmn.cpp @@ -214,10 +214,6 @@ bool wxMediaCtrl::DoCreate(wxClassInfo* classInfo, if( m_imp->CreateControl(this, parent, id, pos, size, style, validator, name) ) { - this->Connect(GetId(), wxEVT_MEDIA_FINISHED, - (wxObjectEventFunction) (wxEventFunction) - (wxMediaEventFunction) - &wxMediaCtrl::OnMediaFinished); return true; } @@ -415,32 +411,10 @@ void wxMediaCtrl::DoMoveWindow(int x, int y, int w, int h) m_imp->Move(x, y, w, h); } -void wxMediaCtrl::Loop(bool bLoop) -{ - m_bLoop = bLoop; -} - -bool wxMediaCtrl::IsLooped() -{ - return m_bLoop; -} - -void wxMediaCtrl::OnMediaFinished(wxMediaEvent& WXUNUSED(evt)) -{ - if(m_bLoop) - { -#ifdef __WXDEBUG__ - wxASSERT( Play() ); -#else - Play(); -#endif - } -} - //DARWIN gcc compiler badly screwed up - needs destructor impl in source wxMediaBackend::~wxMediaBackend() { } -#include +#include "wx/html/forcelnk.h" FORCE_LINK(basewxmediabackends); //---------------------------------------------------------------------------