cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=f48bbb1856590d8d12d34181fab34d9bbec970e1

commit f48bbb1856590d8d12d34181fab34d9bbec970e1
Author: woochan lee <wc0917....@samsung.com>
Date:   Mon Nov 23 08:00:45 2015 +0100

    datetime: fix field arrange code for dynamically field sequence change case.
    
    Summary:
    This is for support dynamically field sequence changing case
    
    for example
    User sets datetime format as "%d/%b/%y" first.
    Then change the format dynamically in runtime to "%I:%M %p"
    
    Previous format datetime items still there.
    It breaks view(object dulicated on same geometry)
    
    @fix
    
    Test Plan:
    Run datetime sample.
    Add changed callback.
    Change format in changed callback function.
    Check the bug state.
    
    Reviewers: jaehwan, id213sin, Hermet, cedric
    
    Reviewed By: cedric
    
    Differential Revision: https://phab.enlightenment.org/D3340
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elm_datetime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c
index ccd14f3..9d1d2f4 100644
--- a/src/lib/elm_datetime.c
+++ b/src/lib/elm_datetime.c
@@ -231,7 +231,7 @@ _field_list_arrange(Evas_Object *obj)
 
         if (field->visible && field->fmt_exist)
           {
-             elm_layout_content_unset(obj, buf);
+             evas_object_hide(elm_layout_content_unset(obj, buf));
              elm_layout_content_set(obj, buf, field->item_obj);
           }
         else

-- 


Reply via email to