From: ChunEon Park Date: Fri, 15 Feb 2013 12:55:43 +0000 (+0000) Subject: elementary/popup - fix popup to not unswallow invalid contents when the contents... X-Git-Tag: submit/efl/20131021.015827~974 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9024f373a21f3ca30b7b52fb4941a24907aec37;p=platform%2Fupstream%2Felementary.git elementary/popup - fix popup to not unswallow invalid contents when the contents are deleted. SVN revision: 83950 --- diff --git a/ChangeLog b/ChangeLog index 929a339..4170b2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1017,3 +1017,11 @@ 2013-02-15 Shinwoo Kim * Popup is now a focusable object. + +2013-02-15 ChunEon Park (Hermet) + + * support naviframe, button, label orientation mode. + +2013-02-15 ChunEon Park (Hermet) + + * Fix popup to not unswallow invalid contents when contents are deleted. diff --git a/NEWS b/NEWS index e1a14a9..256d0f2 100644 --- a/NEWS +++ b/NEWS @@ -38,7 +38,7 @@ Additions: * Add APIs - elm_object_domain_translatable_part_text_set(), elm_object_translatable_part_text_get(). * Add APIs - elm_object_orientation_mode_disabled_set(), elm_object_orientation_mode_disabled_get(). * Add the reorder effect in toolbar. - + * Support naviframe, label, button orientation mode. Improvements: @@ -148,6 +148,7 @@ Fixes: * Fix a elm_transit crash issue when user delete all target objects in the effect end callback. * Fix elc_player pause state to be in sync * Fix time string display to handle hours right + * Fix popup to not unswallow invalid contents when contents are deleted. Removals: diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c index bc83f7c..5808913 100644 --- a/src/lib/elc_popup.c +++ b/src/lib/elc_popup.c @@ -388,8 +388,6 @@ _on_content_del(void *data, ELM_POPUP_DATA_GET(data, sd); sd->content = NULL; - edje_object_part_unswallow - (data, edje_object_part_swallow_get(data, "elm.swallow.content")); elm_layout_sizing_eval(data); } @@ -402,8 +400,6 @@ _on_text_content_del(void *data, ELM_POPUP_DATA_GET(data, sd); sd->text_content_obj = NULL; - edje_object_part_unswallow - (data, edje_object_part_swallow_get(data, "elm.swallow.content")); elm_layout_sizing_eval(data); } @@ -877,7 +873,7 @@ static Eina_Bool _content_text_set(Evas_Object *obj, const char *text) { - Evas_Object *prev_content, *ao; + Evas_Object *ao; char buf[128]; ELM_POPUP_DATA_GET(obj, sd); @@ -888,18 +884,10 @@ _content_text_set(Evas_Object *obj, _items_remove(sd); _list_del(sd); } - - prev_content = elm_layout_content_get - (sd->content_area, "elm.swallow.content"); - - if (prev_content) - evas_object_del(prev_content); - + else edje_object_part_swallow(wd->resize_obj, "elm.swallow.content", + sd->content_area); if (!text) goto end; - edje_object_part_swallow - (wd->resize_obj, "elm.swallow.content", - sd->content_area); sd->text_content_obj = elm_label_add(obj); evas_object_event_callback_add @@ -1026,8 +1014,6 @@ static Eina_Bool _content_set(Evas_Object *obj, Evas_Object *content) { - Evas_Object *prev_content; - ELM_POPUP_DATA_GET(obj, sd); Elm_Widget_Smart_Data *wd = eo_data_get(obj, ELM_OBJ_WIDGET_CLASS); @@ -1037,10 +1023,6 @@ _content_set(Evas_Object *obj, _items_remove(sd); _list_del(sd); } - prev_content = - elm_layout_content_get(sd->content_area, "elm.swallow.content"); - if (prev_content) - evas_object_del(prev_content); sd->content = content; if (content)