test_popup: set popup content correctly

internal object content_area was not swallowed into popup
since elm_object_part_content_set() was used.

Steps to reproduce:
1. clouseau elementary_test -to popup
2. open subpopup example.
3. observe orphan content_area object in clouseau widget list.
This commit is contained in:
Amitesh Singh 2015-08-05 15:04:30 +05:30
parent 70ea7962f9
commit 87e841d7b7
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ _subpopup_cb(void *data, Evas_Object *obj EINA_UNUSED,
// button as a popup content
btn = elm_button_add(popup);
elm_object_text_set(btn, "content");
elm_object_part_content_set(popup, "elm.swallow.content", btn);
elm_object_content_set(popup, btn);
// popup buttons
btn = elm_button_add(popup);