diff --git a/jni/appl/Gui/Search.cpp b/jni/appl/Gui/Search.cpp index c3d8bdc..b3872e9 100644 --- a/jni/appl/Gui/Search.cpp +++ b/jni/appl/Gui/Search.cpp @@ -59,6 +59,15 @@ Search::Search(void) : ewol::ButtonImage * myButtonImage = NULL; + myButtonImage = new ewol::ButtonImage("icon/Remove.svg"); + if (NULL == myButtonImage) { + APPL_ERROR("Widget allocation error ==> it will missing in the display"); + } else { + myButtonImage->SetMinSize(32,32); + myButtonImage->RegisterOnEvent(this, ewolEventButtonPressed, l_eventHideBt); + SubWidgetAdd(myButtonImage); + } + m_searchEntry = new ewol::Entry(); if (NULL == m_searchEntry) { APPL_ERROR("Widget allocation error ==> it will missing in the display"); @@ -135,15 +144,6 @@ Search::Search(void) : SubWidgetAdd(myButtonImage); } - myButtonImage = new ewol::ButtonImage("icon/Forbidden.svg"); - if (NULL == myButtonImage) { - APPL_ERROR("Widget allocation error ==> it will missing in the display"); - } else { - myButtonImage->SetMinSize(32,32); - myButtonImage->RegisterOnEvent(this, ewolEventButtonPressed, l_eventHideBt); - SubWidgetAdd(myButtonImage); - } - RegisterMultiCast(ednMsgGuiSearch); // basicly hiden ... Hide();