elementary/popup - a workaround code to prevent a popup lost it's parent.
authorChunEon Park <hermet@hermet.pe.kr>
Sat, 16 Feb 2013 08:52:10 +0000 (08:52 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Sat, 16 Feb 2013 08:52:10 +0000 (08:52 +0000)
Terrible. Should be totally rewritten.

SVN revision: 83975

legacy/elementary/src/lib/elc_popup.c

index cdbfaf3..34b50a1 100644 (file)
@@ -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);