bug correction

This commit is contained in:
Edouard Dupin 2012-02-12 22:38:07 +01:00
parent c15c4fa9d2
commit d1677a10ba
3 changed files with 19 additions and 2 deletions

View File

@ -179,6 +179,7 @@ void EWOL_NativeRender(void)
glDisable(GL_BLEND); glDisable(GL_BLEND);
} else { } else {
EWOL_GenericDraw(true); EWOL_GenericDraw(true);
//EWOL_GenericDraw(false);
} }
glFlush(); glFlush();
} }

View File

@ -160,7 +160,20 @@ bool ewol::List::OnEventInput(int32_t IdInput, eventInputType_te typeEvent, etkF
//EWOL_DEBUG("OnEventInput(" << IdInput << "," << typeEvent << "," << 0 << "," << rawID << "," << x <<"," << y << ");"); //EWOL_DEBUG("OnEventInput(" << IdInput << "," << typeEvent << "," << 0 << "," << rawID << "," << x <<"," << y << ");");
bool isUsed = OnItemEvent(IdInput, typeEvent, 0, rawID, x, y); bool isUsed = OnItemEvent(IdInput, typeEvent, 0, rawID, x, y);
if (true == isUsed) { if (true == isUsed) {
ewol::widgetManager::FocusKeep(this); // TODO : this generate bugs ... I did not understand why ..
//ewol::widgetManager::FocusKeep(this);
} }
return isUsed; return isUsed;
} }
void ewol::List::OnGetFocus(void)
{
EWOL_DEBUG("Ewol::List Get Focus");
}
void ewol::List::OnLostFocus(void)
{
EWOL_DEBUG("Ewol::List Lost Focus");
}

View File

@ -88,6 +88,9 @@ namespace ewol {
virtual bool OnItemEvent(int32_t IdInput, ewol::eventInputType_te typeEvent, int32_t colomn, int32_t raw, etkFloat_t x, etkFloat_t y) { virtual bool OnItemEvent(int32_t IdInput, ewol::eventInputType_te typeEvent, int32_t colomn, int32_t raw, etkFloat_t x, etkFloat_t y) {
return false; return false;
} }
protected:
virtual void OnGetFocus(void);
virtual void OnLostFocus(void);
}; };
}; };