From 34ed5ffdeac59253f70d10be5771ff6333c686c9 Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Thu, 8 Mar 2012 16:18:37 +0900 Subject: [PATCH] [genlist] remove focus at flipped mode Change-Id: I57d10f5e7ac3835f012840bc86f95aa16cfbd29f --- src/lib/elm_genlist.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index c7e4bd9..a5a3286 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1977,6 +1977,14 @@ _item_content_realize(Elm_Gen_Item *it, evas_object_event_callback_add(ic, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _changed_size_hints, it); + if (it->flipped) + { + // FIXME: if entry calcuates its cursor position correctly and conformant works, + // genlist does not need to handle this focus thing. + evas_object_smart_callback_add(ic, "focused", _content_focused, it); + evas_object_smart_callback_add(ic, "unfocused", _content_unfocused, it); + } + if (elm_widget_item_disabled_get(it)) elm_widget_disabled_set(ic, EINA_TRUE); } @@ -2047,6 +2055,10 @@ _item_flips_realize(Elm_Gen_Item *it, edje_object_part_swallow(target, key, ic); evas_object_show(ic); elm_widget_sub_object_add(WIDGET(it), ic); + // FIXME: if entry calcuates its cursor position correctly and conformant works, + // genlist does not need to handle this focus thing. + evas_object_smart_callback_add(ic, "focused", _content_focused, it); + evas_object_smart_callback_add(ic, "unfocused", _content_unfocused, it); if (elm_widget_item_disabled_get(it)) elm_widget_disabled_set(ic, EINA_TRUE); } -- 2.7.4