From 628c10ff3ad662d42ef28fd10994924b916ba8c8 Mon Sep 17 00:00:00 2001 From: Edouard Dupin Date: Tue, 17 Jul 2012 13:26:27 +0200 Subject: [PATCH] Change the close position of the search windows --- jni/appl/Gui/Search.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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();