From 7d006add9bf55e77df7c9258eb3b7f6f928d9787 Mon Sep 17 00:00:00 2001 From: Tae-Hwan Kim Date: Mon, 8 Apr 2013 17:25:09 +0900 Subject: [PATCH] Fix entry unrealization issue in genlist Change-Id: Id4e4bcc495edd9c89fe516745fbe597fe7d5f6d0 --- src/lib/elm_genlist.c | 52 +++++++-------------------------------------------- 1 file changed, 7 insertions(+), 45 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 724ea61..5eb903a 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1085,28 +1085,8 @@ _item_mode_content_realize(Elm_Gen_Item *it, // 1. Add resize callback for multiline entry. // 2. Do not unrealize it for focus issue // ps. Only for entry because of performnace - if (!strcmp("elm_layout", evas_object_type_get(ic))) - { - // If editfield style, it can have entry. - const char *group; - edje_object_file_get(elm_layout_edje_get(ic), NULL, &group); - if (group && !strncmp("elm/layout/editfield/", group, 20)) - { - Eina_List *ll; - Evas_Object *subobj; - Eina_List *subobjs = elm_widget_sub_object_list_get(ic); - EINA_LIST_FOREACH(subobjs, ll, subobj) - { - if (!strcmp("elm_entry", evas_object_type_get(subobj)) && - !elm_entry_single_line_get(subobj)) - it->item->unrealize_disabled = EINA_TRUE; - } - } - } - else if (!strcmp("elm_entry", evas_object_type_get(ic)) && - !elm_entry_single_line_get(ic)) - it->item->unrealize_disabled = EINA_TRUE; - + if (!strcmp("elm_entry", evas_object_type_get(ic))) + it->item->unrealize_disabled = EINA_TRUE; } #endif #if 0 @@ -1388,30 +1368,12 @@ _item_content_realize(Elm_Gen_Item *it, // 1. Add resize callback for multiline entry. // 2. Do not unrealize it for focus issue // ps. Only for entry because of performnace - if (!strcmp("elm_layout", evas_object_type_get(ic))) - { - // If editfield style, it can have entry. - const char *group; - edje_object_file_get(elm_layout_edje_get(ic), NULL, &group); - if (group && !strncmp("elm/layout/editfield/", group, 20)) - { - Eina_List *ll; - Evas_Object *subobj; - Eina_List *subobjs = elm_widget_sub_object_list_get(ic); - EINA_LIST_FOREACH(subobjs, ll, subobj) - { - if (!strcmp("elm_entry", evas_object_type_get(subobj)) && - !elm_entry_single_line_get(subobj)) - it->item->unrealize_disabled = EINA_TRUE; - } - } - } - else if (!strcmp("elm_entry", evas_object_type_get(ic)) && - !elm_entry_single_line_get(ic)) + if (!strcmp("elm_entry", evas_object_type_get(ic))) { - evas_object_event_callback_add - (ic, EVAS_CALLBACK_CHANGED_SIZE_HINTS, - _changed_size_hints, it); + if (!elm_entry_single_line_get(ic)) + evas_object_event_callback_add + (ic, EVAS_CALLBACK_CHANGED_SIZE_HINTS, + _changed_size_hints, it); it->item->unrealize_disabled = EINA_TRUE; } #endif -- 2.7.4