popup: notify's parent change to elm_win 74/104174/4
authorJinYong Park <j4939.park@samsung.com>
Mon, 12 Dec 2016 13:00:06 +0000 (22:00 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 14 Dec 2016 04:56:31 +0000 (20:56 -0800)
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 2370262..2975a7e 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 */