projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct the name of the header for GTK+ < 2.14.
[wxWidgets.git]
/
src
/
common
/
mediactrlcmn.cpp
diff --git
a/src/common/mediactrlcmn.cpp
b/src/common/mediactrlcmn.cpp
index b95b00b9a48b13f005670dce7d6bfa79aa4ccf15..c1cf31c007ddd507a0bfbbe1abf74407c0131a83 100644
(file)
--- a/
src/common/mediactrlcmn.cpp
+++ b/
src/common/mediactrlcmn.cpp
@@
-45,14
+45,14
@@
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
IMPLEMENT_CLASS(wxMediaCtrl, wxControl)
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
IMPLEMENT_CLASS(wxMediaCtrl, wxControl)
-DEFINE_EVENT_TYPE(wxEVT_MEDIA_STATECHANGED)
-DEFINE_EVENT_TYPE(wxEVT_MEDIA_PLAY)
-DEFINE_EVENT_TYPE(wxEVT_MEDIA_PAUSE)
+wxDEFINE_EVENT( wxEVT_MEDIA_STATECHANGED, wxMediaEvent );
+wxDEFINE_EVENT( wxEVT_MEDIA_PLAY, wxMediaEvent );
+wxDEFINE_EVENT( wxEVT_MEDIA_PAUSE, wxMediaEvent );
IMPLEMENT_CLASS(wxMediaBackend, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxMediaEvent, wxEvent)
IMPLEMENT_CLASS(wxMediaBackend, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxMediaEvent, wxEvent)
-DEFINE_EVENT_TYPE(wxEVT_MEDIA_FINISHED)
-DEFINE_EVENT_TYPE(wxEVT_MEDIA_LOADED)
-DEFINE_EVENT_TYPE(wxEVT_MEDIA_STOP)
+wxDEFINE_EVENT( wxEVT_MEDIA_FINISHED, wxMediaEvent );
+wxDEFINE_EVENT( wxEVT_MEDIA_LOADED, wxMediaEvent );
+wxDEFINE_EVENT( wxEVT_MEDIA_STOP, wxMediaEvent );
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
@@
-107,8
+107,7
@@
bool wxMediaCtrl::Create(wxWindow* parent, wxWindowID id,
{
if (!Load(fileName))
{
{
if (!Load(fileName))
{
- delete m_imp;
- m_imp = NULL;
+ wxDELETE(m_imp);
return false;
}
}
return false;
}
}
@@
-124,7
+123,6
@@
bool wxMediaCtrl::Create(wxWindow* parent, wxWindowID id,
while((classInfo = NextBackend(&it)) != NULL)
{
while((classInfo = NextBackend(&it)) != NULL)
{
- wxLogMessage( classInfo->GetClassName() );
if(!DoCreate(classInfo, parent, id,
pos, size, style, validator, name))
continue;
if(!DoCreate(classInfo, parent, id,
pos, size, style, validator, name))
continue;
@@
-172,8
+170,7
@@
bool wxMediaCtrl::Create(wxWindow* parent, wxWindowID id,
if (!Load(location))
{
if (!Load(location))
{
- delete m_imp;
- m_imp = NULL;
+ wxDELETE(m_imp);
return false;
}
return false;
}
@@
-513,13
+510,13
@@
bool wxMediaBackendCommonBase::SendStopEvent()
{
wxMediaEvent theEvent(wxEVT_MEDIA_STOP, m_ctrl->GetId());
{
wxMediaEvent theEvent(wxEVT_MEDIA_STOP, m_ctrl->GetId());
- return !m_ctrl->ProcessEvent(theEvent) || theEvent.IsAllowed();
+ return !m_ctrl->
GetEventHandler()->
ProcessEvent(theEvent) || theEvent.IsAllowed();
}
void wxMediaBackendCommonBase::QueueEvent(wxEventType evtType)
{
wxMediaEvent theEvent(evtType, m_ctrl->GetId());
}
void wxMediaBackendCommonBase::QueueEvent(wxEventType evtType)
{
wxMediaEvent theEvent(evtType, m_ctrl->GetId());
- m_ctrl->AddPendingEvent(theEvent);
+ m_ctrl->
GetEventHandler()->
AddPendingEvent(theEvent);
}
void wxMediaBackendCommonBase::QueuePlayEvent()
}
void wxMediaBackendCommonBase::QueuePlayEvent()