X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2997ca30d66c2dc778ed9a84c8c94fea6ec1c958..9cc62fc819e1b2b01af9732a3ad218aeec13e4d4:/src/common/mediactrlcmn.cpp?ds=inline diff --git a/src/common/mediactrlcmn.cpp b/src/common/mediactrlcmn.cpp index b9e3181262..f5994cb27b 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,28 +411,6 @@ 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() { }