test_popup: set popup content correctly
authorAmitesh Singh <amitesh.sh@samsung.com>
Wed, 5 Aug 2015 09:34:30 +0000 (15:04 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Wed, 5 Aug 2015 09:37:08 +0000 (15:07 +0530)
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.

src/bin/test_popup.c

index 32712ac..a2e576c 100644 (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);