summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-04-30 14:42:15 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-04-30 14:42:15 -0400
commit3f5dda8e9c0fdbdae9bd999264187f84413a1346 (patch)
tree67411d3b570ce86dbc1ce1436daef1ff91b3a401 /src
parent08ee5e766b42b6f95b2b36b0361d40bcc9c80f62 (diff)
hide filesystem search entry when all text has been deleted
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index 51ec8f1..525f861 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -1278,7 +1278,17 @@ filesystem_entry_key(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *o
1278 if (!filesystem_idler) 1278 if (!filesystem_idler)
1279 filesystem_idler = ecore_idler_add(filesystem_idler_cb, ly); 1279 filesystem_idler = ecore_idler_add(filesystem_idler_cb, ly);
1280 if (!strcmp(ev->key, "BackSpace")) 1280 if (!strcmp(ev->key, "BackSpace"))
1281 filesystem_idler_pos = NULL; 1281 {
1282 const char *str;
1283
1284 filesystem_idler_pos = NULL;
1285 str = elm_entry_entry_get(filesystem_entry);
1286 if ((!str) || (!str[0]))
1287 {
1288 filesystem_entry_hide(ly);
1289 E_FREE_FUNC(filesystem_idler, ecore_idler_del);
1290 }
1291 }
1282 } 1292 }
1283 elm_layout_signal_emit(layout, "empc,key,down", "empc"); 1293 elm_layout_signal_emit(layout, "empc,key,down", "empc");
1284} 1294}