popup: use widget style set internal function to notify
authorJinYong Park <j4939.park@samsung.com>
Fri, 23 Dec 2016 06:53:48 +0000 (15:53 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:11 +0000 (14:37 +0900)
Change-Id: I48a1f800a751c6386134916d4ec911659f3ffbc0
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
src/lib/elc_popup.c

index 13bd2930da012128b48e3fde6fa0aeb42708d13e..bc510ca97879917721d8b79b86f219f327964c3d 100644 (file)
@@ -505,14 +505,14 @@ _elm_popup_elm_widget_theme_apply(Eo *obj, Elm_Popup_Data *sd)
         const char *obj_style = elm_widget_style_get(obj);
 
         if (obj_style && !strcmp(obj_style, "default"))
-          ret = elm_widget_style_set(sd->notify, "popup");
+          ret = _elm_widget_style_set_internal(sd->notify, "popup");
         else
-          ret = elm_widget_style_set(sd->notify, obj_style);
+          ret = _elm_widget_style_set_internal(sd->notify, obj_style);
 
         if (ret != ELM_THEME_APPLY_SUCCESS)
-          if (elm_widget_style_set(sd->notify, style) != ELM_THEME_APPLY_SUCCESS)
-            if (elm_widget_style_set(sd->notify, "popup") != ELM_THEME_APPLY_SUCCESS)
-              elm_widget_style_set(sd->notify, "popup/default");
+          if (_elm_widget_style_set_internal(sd->notify, style) != ELM_THEME_APPLY_SUCCESS)
+            if (_elm_widget_style_set_internal(sd->notify, "popup") != ELM_THEME_APPLY_SUCCESS)
+              _elm_widget_style_set_internal(sd->notify, "popup/default");
      }
    /* END */
 
@@ -1954,14 +1954,14 @@ _elm_popup_evas_object_smart_add(Eo *obj, Elm_Popup_Data *priv)
         const char *obj_style = elm_widget_style_get(obj);
 
         if (obj_style && !strcmp(obj_style, "default"))
-          ret = elm_widget_style_set(priv->notify, "popup");
+          ret = _elm_widget_style_set_internal(priv->notify, "popup");
         else
-          ret = elm_widget_style_set(priv->notify, obj_style);
+          ret = _elm_widget_style_set_internal(priv->notify, obj_style);
 
         if (ret != ELM_THEME_APPLY_SUCCESS)
-          if (elm_widget_style_set(priv->notify, style) != ELM_THEME_APPLY_SUCCESS)
-            if (elm_widget_style_set(priv->notify, "popup") != ELM_THEME_APPLY_SUCCESS)
-              elm_widget_style_set(priv->notify, "popup/default");
+          if (_elm_widget_style_set_internal(priv->notify, style) != ELM_THEME_APPLY_SUCCESS)
+            if (_elm_widget_style_set_internal(priv->notify, "popup") != ELM_THEME_APPLY_SUCCESS)
+              _elm_widget_style_set_internal(priv->notify, "popup/default");
      }
    /* END */