ui: searchy
This commit is contained in:
parent
1d94dd9433
commit
2988881b62
|
@ -1172,12 +1172,10 @@ _search_empty(void *data)
|
||||||
Ui_Data *pd = data;
|
Ui_Data *pd = data;
|
||||||
|
|
||||||
markup = elm_object_part_text_get(pd->entry, NULL);
|
markup = elm_object_part_text_get(pd->entry, NULL);
|
||||||
|
|
||||||
if (strlen(markup) == 0)
|
if (strlen(markup) == 0)
|
||||||
{
|
{
|
||||||
evas_object_lower(pd->entry_pop);
|
evas_object_lower(pd->entry_pop);
|
||||||
pd->timer_entry = NULL;
|
return EINA_TRUE;
|
||||||
return EINA_FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
@ -1223,11 +1221,7 @@ _evisum_search_keypress_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
|
||||||
static void
|
static void
|
||||||
_evisum_search_add(Ui_Data *pd)
|
_evisum_search_add(Ui_Data *pd)
|
||||||
{
|
{
|
||||||
Evas_Object *tbl, *rec, *box, *entry;
|
Evas_Object *tbl, *rec, *entry;
|
||||||
|
|
||||||
pd->entry_pop = tbl = elm_table_add(pd->win);
|
|
||||||
evas_object_lower(tbl);
|
|
||||||
evas_object_show(tbl);
|
|
||||||
|
|
||||||
pd->entry = entry = elm_entry_add(pd->win);
|
pd->entry = entry = elm_entry_add(pd->win);
|
||||||
evas_object_size_hint_weight_set(entry, EXPAND, EXPAND);
|
evas_object_size_hint_weight_set(entry, EXPAND, EXPAND);
|
||||||
|
@ -1239,6 +1233,10 @@ _evisum_search_add(Ui_Data *pd)
|
||||||
_evisum_search_keypress_cb, pd);
|
_evisum_search_keypress_cb, pd);
|
||||||
evas_object_show(entry);
|
evas_object_show(entry);
|
||||||
|
|
||||||
|
pd->entry_pop = tbl = elm_table_add(pd->win);
|
||||||
|
evas_object_lower(tbl);
|
||||||
|
evas_object_show(tbl);
|
||||||
|
|
||||||
rec = evas_object_rectangle_add(evas_object_evas_get(pd->win));
|
rec = evas_object_rectangle_add(evas_object_evas_get(pd->win));
|
||||||
evas_object_color_set(rec, 0, 0, 0, 128);
|
evas_object_color_set(rec, 0, 0, 0, 128);
|
||||||
evas_object_size_hint_min_set(rec, ELM_SCALE_SIZE(192), ELM_SCALE_SIZE(128));
|
evas_object_size_hint_min_set(rec, ELM_SCALE_SIZE(192), ELM_SCALE_SIZE(128));
|
||||||
|
@ -1251,8 +1249,7 @@ _evisum_search_add(Ui_Data *pd)
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
_ui_content_system_add(Ui_Data *pd, Evas_Object *parent)
|
_ui_content_system_add(Ui_Data *pd, Evas_Object *parent)
|
||||||
{
|
{
|
||||||
Evas_Object *bx, *fr, *tbl;
|
Evas_Object *bx, *fr, *tbl, *btn, *plist;
|
||||||
Evas_Object *entry, *btn, *plist;
|
|
||||||
Ui *ui = pd->ui;
|
Ui *ui = pd->ui;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue