adapte the EObject type management
This commit is contained in:
parent
e6ee6e0cd1
commit
495cab7d27
@ -178,7 +178,7 @@ void MainWindows::OnReceiveMessage(ewol::EObject * CallerObject, const char * ev
|
|||||||
tmpWidget->RegisterOnEvent(this, ewolEventFileChooserValidate, ednEventPopUpFileSelected);
|
tmpWidget->RegisterOnEvent(this, ewolEventFileChooserValidate, ednEventPopUpFileSelected);
|
||||||
} else if (eventId == ednEventPopUpFileSelected) {
|
} else if (eventId == ednEventPopUpFileSelected) {
|
||||||
// get widget:
|
// get widget:
|
||||||
ewol::FileChooser * tmpWidget = static_cast<ewol::FileChooser*>(CallerObject);
|
ewol::FileChooser * tmpWidget = EWOL_CAST_WIDGET_FILE_CHOOSER(CallerObject);
|
||||||
if (NULL == tmpWidget) {
|
if (NULL == tmpWidget) {
|
||||||
EDN_ERROR("impossible to get pop_upWidget " << CallerObject);
|
EDN_ERROR("impossible to get pop_upWidget " << CallerObject);
|
||||||
return;
|
return;
|
||||||
@ -220,7 +220,7 @@ void MainWindows::OnReceiveMessage(ewol::EObject * CallerObject, const char * ev
|
|||||||
}
|
}
|
||||||
} else if (eventId == ednEventPopUpFileSaveAs) {
|
} else if (eventId == ednEventPopUpFileSaveAs) {
|
||||||
// get widget:
|
// get widget:
|
||||||
ewol::FileChooser * tmpWidget = static_cast<ewol::FileChooser*>(CallerObject);
|
ewol::FileChooser * tmpWidget = EWOL_CAST_WIDGET_FILE_CHOOSER(CallerObject);
|
||||||
if (NULL == tmpWidget) {
|
if (NULL == tmpWidget) {
|
||||||
EDN_ERROR("impossible to get pop_upWidget " << CallerObject);
|
EDN_ERROR("impossible to get pop_upWidget " << CallerObject);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user