search: unused var and timer too long.

This commit is contained in:
Alastair Poole 2021-01-21 13:09:07 +00:00
parent 34fde488e5
commit bae3701006
1 changed files with 1 additions and 2 deletions

View File

@ -1491,7 +1491,7 @@ _search_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
pd->search_text = strdup(text);
pd->search_len = len;
if (!len && !pd->search_timer)
pd->search_timer = ecore_timer_add(1.0, _search_empty_cb, pd);
pd->search_timer = ecore_timer_add(0.5, _search_empty_cb, pd);
}
pd->skip_wait = 1;
}
@ -1533,7 +1533,6 @@ _search_add(Ui_Data *pd)
static void
_win_key_down_search(Ui_Data *pd, Evas_Event_Key_Down *ev)
{
Evas_Object *entry;
Evas_Coord w, h;
if (!strcmp(ev->keyname, "Escape"))