popup: notify's parent change to elm_win
authorJinYong Park <j4939.park@samsung.com>
Mon, 12 Dec 2016 13:00:06 +0000 (22:00 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:08 +0000 (14:37 +0900)
If popup add to not window object,
notify can't block all window area.
So notify add to top window object.

Change-Id: I096fb07bc6b0a5d1d2fdea746a5dc15da593c5a1
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
src/lib/elc_popup.c

index 2370262ab6484a094b961603914b665ee85ec8ab..2975a7e3f1e7bc234a7fa5fcf113677596a89cac 100644 (file)
@@ -1929,7 +1929,18 @@ _elm_popup_evas_object_smart_add(Eo *obj, Elm_Popup_Data *priv)
 
    snprintf(style, sizeof(style), "popup/%s", elm_widget_style_get(obj));
 
+   /* TIZEN_ONLY(20161212): notify's parent change to elm_win
    priv->notify = elm_notify_add(obj);
+    */
+   Evas_Object *win = elm_widget_top_get(obj);
+   if (win && !strcmp(evas_object_type_get(win), "elm_win"))
+     {
+        priv->notify = elm_notify_add(win);
+        evas_object_smart_member_add(priv->notify, obj);
+     }
+   else
+     priv->notify = elm_notify_add(obj);
+   /* END */
    /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
    _elm_widget_color_class_parent_set(priv->notify, obj);
    /* END */