From b8faa1508651dda57d7ef408f1a0a34bb7d6039e Mon Sep 17 00:00:00 2001 From: shilpa singh Date: Fri, 17 Dec 2010 15:39:32 +0530 Subject: [PATCH] [elm_popup_content_get] returns wrong value issue resolved. --- src/lib/elm_popup.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_popup.c b/src/lib/elm_popup.c index 99f0fa0..88e85aa 100644 --- a/src/lib/elm_popup.c +++ b/src/lib/elm_popup.c @@ -639,9 +639,12 @@ elm_popup_content_get(Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; Widget_Data *wd = elm_widget_data_get(obj); - + Evas_Object *content; + if (!wd) return NULL; - return wd->content_area; + content = edje_object_part_swallow_get(elm_layout_edje_get(wd->content_area), + "elm.swallow.content"); + return content; } /** -- 2.7.4