Prevent fixes
authorLukasz Marek <l.marek@samsung.com>
Mon, 13 May 2013 11:47:09 +0000 (13:47 +0200)
committerYunchan Cho <yunchan.cho@samsung.com>
Tue, 14 May 2013 04:48:29 +0000 (13:48 +0900)
[Issue#] N/A
[Problem] prevent warnings
[Cause] N/A
[Solution] Fixes
[Verification] Build web-provider repository

Change-Id: I8533788230abfe23566447f5bd74f0def4f8130f

src/Core/Service/CMakeLists.txt
src/Core/Service/MessageManager.cpp
src/Plugin/AppBoxPlugin/AppBoxPdHelper.cpp

index baf5d5c..0a4c9a4 100644 (file)
@@ -22,6 +22,7 @@ PKG_CHECK_MODULES(${DEPS}
     capi-appfw-application
     livebox-service
     evas
+    eina
     ecore-x
     elementary
     provider
index 5f61580..501480f 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <string>
 #include <Evas.h>
+#include <Eina.h>
 #include <ewk_view.h>
 #include <Core/Util/Log.h>
 #include "MessageManager.h"
@@ -67,7 +68,10 @@ bool MessageManager::send(Evas_Object* webview, ReceiverType receiver, std::stri
     LogD("calling javascript: %s", script.c_str());
 
     // execute js code for sending message
-    ewk_view_script_execute(webview, script.c_str(), executeScriptCallback, this);
+    if (EINA_FALSE == ewk_view_script_execute(
+                webview, script.c_str(), executeScriptCallback, this)) {
+        LogD("ewk_view_script_execute fail.");
+    }
 
     return true;
 }
index 21c71e4..46e0fb9 100644 (file)
@@ -76,10 +76,10 @@ Evas_Object* AppBoxPdHelper::getPdWebView() const
     return m_pdWebView;
 }
 
-Evas* AppBoxPdHelper::getPdCanvas() const  
+Evas* AppBoxPdHelper::getPdCanvas() const
 {
     LogD("enter");
-    evas_object_evas_get(m_win);
+    return evas_object_evas_get(m_win);
 }
 
 bool AppBoxPdHelper::isPdOpened() const