popup: code refactoring
authorJaeun Choi <jaeun12.choi@samsung.com>
Wed, 9 Jul 2014 07:32:09 +0000 (16:32 +0900)
committerJaeun Choi <jaeun12.choi@samsung.com>
Wed, 16 Jul 2014 13:45:29 +0000 (22:45 +0900)
commit7f5a7329717bace0a851ed1d4f732a1aa9be7f27
treeaa25a54171e4f80bc918f3c24d6af32d1be75844
parent27ec47c460a53629987b563dab451735971fd421
popup: code refactoring

Popup has an abnormal parent-child tree as follows, and this patch fixes it.

 - when popup is created, it creates a notify as a child and the tree is [parent - popup - notify].
 - when popup is visible, it is set as a content of notify and the tree is [parent - notify - popup].
 - when popup is hidden, the tree is reverted.

To fix this, I made an internal layout and set it as the content of notify
so that the tree remains as [parent - popup - notify - layout] all the time.
src/lib/elc_popup.c
src/lib/elm_widget_popup.h