adapte the EObject type management

This commit is contained in:
Edouard Dupin 2012-03-13 14:37:05 +01:00
parent e6ee6e0cd1
commit 495cab7d27

View File

@ -178,7 +178,7 @@ void MainWindows::OnReceiveMessage(ewol::EObject * CallerObject, const char * ev
tmpWidget->RegisterOnEvent(this, ewolEventFileChooserValidate, ednEventPopUpFileSelected);
} else if (eventId == ednEventPopUpFileSelected) {
// get widget:
ewol::FileChooser * tmpWidget = static_cast<ewol::FileChooser*>(CallerObject);
ewol::FileChooser * tmpWidget = EWOL_CAST_WIDGET_FILE_CHOOSER(CallerObject);
if (NULL == tmpWidget) {
EDN_ERROR("impossible to get pop_upWidget " << CallerObject);
return;
@ -220,7 +220,7 @@ void MainWindows::OnReceiveMessage(ewol::EObject * CallerObject, const char * ev
}
} else if (eventId == ednEventPopUpFileSaveAs) {
// get widget:
ewol::FileChooser * tmpWidget = static_cast<ewol::FileChooser*>(CallerObject);
ewol::FileChooser * tmpWidget = EWOL_CAST_WIDGET_FILE_CHOOSER(CallerObject);
if (NULL == tmpWidget) {
EDN_ERROR("impossible to get pop_upWidget " << CallerObject);
return;