summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehun Lim <jehun.lim@samsung.com>2015-12-03 08:06:31 (GMT)
committerJehun Lim <jehun.lim@samsung.com>2015-12-03 08:33:24 (GMT)
commit73f71371d7592c0aa5885b8929cb32d203a7dc4f (patch)
treee098637f86b657e1434c2d0cd173cbc183202262
parente3e8844802cb162ead4415f9b9e9c2abfb1e6aa1 (diff)
downloadair_mediahub-73f71371d7592c0aa5885b8929cb32d203a7dc4f.zip
air_mediahub-73f71371d7592c0aa5885b8929cb32d203a7dc4f.tar.gz
air_mediahub-73f71371d7592c0aa5885b8929cb32d203a7dc4f.tar.bz2
Change-Id: Ib5815a329b7b3be35eeef4809d06f8fb64c0b387 Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
-rw-r--r--src/util/listmgr.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/util/listmgr.c b/src/util/listmgr.c
index b3e8d34..99dc3fd 100644
--- a/src/util/listmgr.c
+++ b/src/util/listmgr.c
@@ -120,15 +120,9 @@ static void _view_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *ei)
static void _key_down_cb(int id, void *data, Evas *e, Evas_Object *obj,
Evas_Event_Key_Down *ev)
{
- struct listmgr *lmgr;
- struct play_info_data *pdata;
- struct grid_data *gdata;
-
- if (!data || !obj || !ev)
+ if (!obj || !ev)
return;
- lmgr = data;
-
switch (id) {
case LISTMGR_INDEX:
if (!strcmp(ev->keyname, KEY_BACK) ||
@@ -139,24 +133,11 @@ static void _key_down_cb(int id, void *data, Evas *e, Evas_Object *obj,
if (!strcmp(ev->keyname, KEY_BACK) ||
!strcmp(ev->keyname, KEY_ESC))
elm_object_focus_next(obj, ELM_FOCUS_UP);
- else {
- pdata = lmgr->data->pdata;
- if (pdata->key_down_cb)
- pdata->key_down_cb(pdata->cb_data, obj, ev);
- }
-
break;
case LISTMGR_GRID:
if (!strcmp(ev->keyname, KEY_BACK) ||
!strcmp(ev->keyname, KEY_ESC))
elm_object_focus_next(obj, ELM_FOCUS_UP);
- else {
- gdata = lmgr->data->gdata;
- if (gdata->key_down_cb)
- gdata->key_down_cb(gdata->data,
- lmgr->focused_it, ev);
- }
-
break;
default:
break;