Replaced deprecated platform api
authorJan Olszak <j.olszak@samsung.com>
Mon, 31 Dec 2012 10:26:19 +0000 (11:26 +0100)
committerGerrit Code Review <gerrit2@kim11>
Wed, 9 Jan 2013 13:24:28 +0000 (22:24 +0900)
[Issue] Deprecated API used.
[Bug] N/A
[Cause] N/A
[Solution] Changed deprecated functions to new ones.
[Verification] Build wrt - no deprecated function warnings.

Change-Id: I5988fca4b4957a4f7aa431cc87cc047d4164ef80

src/wrt-client/splash_screen_support.cpp

index 196dbad..3d11e47 100644 (file)
@@ -59,8 +59,8 @@ void SplashScreenSupport::startSplashScreen()
 {
     if (m_splashScreen) {
         LogInfo("splashImageOn");
-        if (elm_icon_animated_get(m_splashScreen) == EINA_TRUE) {
-            elm_icon_animated_play_set(m_splashScreen, EINA_TRUE);
+        if (elm_image_animated_get(m_splashScreen) == EINA_TRUE) {
+            elm_image_animated_play_set(m_splashScreen, EINA_TRUE);
         }
         evas_object_show(m_splashScreen);
     }
@@ -71,8 +71,8 @@ void SplashScreenSupport::stopSplashScreen()
     LogDebug("splash screen stop");
     if (m_splashScreen) {
         LogInfo("splashImageOff");
-        if (elm_icon_animated_get(m_splashScreen) == EINA_TRUE) {
-            elm_icon_animated_play_set(m_splashScreen, EINA_FALSE);
+        if (elm_image_animated_get(m_splashScreen) == EINA_TRUE) {
+            elm_image_animated_play_set(m_splashScreen, EINA_FALSE);
         }
         evas_object_hide(m_splashScreen);
     }
@@ -83,12 +83,12 @@ void SplashScreenSupport::setSplashImagePath(const char * image_path)
     if (image_path) {
         LogInfo("splash screen image path : " << image_path);
 
-        if (elm_icon_file_set(m_splashScreen, image_path, NULL)) {
-            if (elm_icon_animated_available_get(m_splashScreen)) {
-                elm_icon_animated_set(m_splashScreen, EINA_TRUE);
-                elm_icon_animated_play_set(m_splashScreen, EINA_FALSE);
+        if (elm_image_file_set(m_splashScreen, image_path, NULL)) {
+            if (elm_image_animated_available_get(m_splashScreen)) {
+                elm_image_animated_set(m_splashScreen, EINA_TRUE);
+                elm_image_animated_play_set(m_splashScreen, EINA_FALSE);
             } else {
-                elm_icon_animated_set(m_splashScreen, EINA_FALSE);
+                elm_image_animated_set(m_splashScreen, EINA_FALSE);
             }
         } else {
             LogError("loading splash image has been failed");