From f9734b72e03b24c257ecda8a26a0847aa75bc9bd Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Sat, 16 Feb 2013 08:52:10 +0000 Subject: [PATCH] elementary/popup - a workaround code to prevent a popup lost it's parent. Terrible. Should be totally rewritten. SVN revision: 83975 --- legacy/elementary/src/lib/elc_popup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elc_popup.c b/legacy/elementary/src/lib/elc_popup.c index cdbfaf3ee0..34b50a17c0 100644 --- a/legacy/elementary/src/lib/elc_popup.c +++ b/legacy/elementary/src/lib/elc_popup.c @@ -80,7 +80,8 @@ _on_show(void *data __UNUSED__, evas_object_show(sd->notify); - /* yeah, ugly, but again, this widget needs a rewrite */ +/* FIXME: Should be rewritten popup. This code is for arranging child-parent relation well. Without this code, Popup't top parent will be notify. And there will be no parent for notify. Terrible! */ + elm_widget_sub_object_add(elm_widget_parent_get(obj), sd->notify); elm_object_content_set(sd->notify, obj); elm_object_focus_set(obj, EINA_TRUE);