summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyojung Jo <hj903.jo@samsung.com>2015-03-17 17:43:35 +0900
committerHyojung Jo <hj903.jo@samsung.com>2015-03-17 17:43:35 +0900
commitb5a883db1da5928b1c94322b65fab52f4fb0b58f (patch)
treeb727ecfe5ed4101c682240d5738a221ac780b11a
parent81b291818cc091d66481a6bd4f16ca2fe23f8586 (diff)
downloadapplauncher-b5a883db1da5928b1c94322b65fab52f4fb0b58f.tar.gz
applauncher-b5a883db1da5928b1c94322b65fab52f4fb0b58f.tar.bz2
applauncher-b5a883db1da5928b1c94322b65fab52f4fb0b58f.zip
Fixed the history API according to the changed content-history.submit/tizen_tv/20150317.092051
Change-Id: I066d82de57ee8d5702feb37d00e7a6c9df5f2fe0 Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
-rw-r--r--src/layout/AppsBaseLayout.cpp11
-rw-r--r--src/view/ContextView.cpp5
2 files changed, 7 insertions, 9 deletions
diff --git a/src/layout/AppsBaseLayout.cpp b/src/layout/AppsBaseLayout.cpp
index 1a26a5d..5da6909 100644
--- a/src/layout/AppsBaseLayout.cpp
+++ b/src/layout/AppsBaseLayout.cpp
@@ -92,9 +92,9 @@ void CAppsBaseLayout::OnKeyDown(int id, Evas *e, Evas_Object *obj, Evas_Event_Ke
if (!strcmp(ev->keyname, KEY_ENTER) || !strcmp(ev->keyname, KEY_ENTER_REMOTE)) {
elm_object_signal_emit(obj, SIG_CLICKED, PART_APPTHUMB);
- r = app_content_history_add(APP_CH_APPS, m->keyEventedInfo->GetAppid());
- if (r != 0) {
- _ERR("app_content_history_add failed.");
+ if (!CAppContentHistory::HistoryAdd(CAppContentHistory::TYPE_APPS,
+ m->keyEventedInfo->GetAppid())) {
+ _ERR("history add failed.");
return;
}
@@ -147,9 +147,8 @@ void CAppsBaseLayout::OnMouseDown(int id, Evas *e, Evas_Object *obj, Evas_Event_
elm_object_signal_emit(obj, SIG_CLICKED, PART_APPTHUMB);
- r = app_content_history_add(APP_CH_APPS, ainfo->GetAppid());
- if (r != 0) {
- _ERR("app_content_history_add failed.");
+ if (!CAppContentHistory::HistoryAdd(CAppContentHistory::TYPE_APPS, ainfo->GetAppid())) {
+ _ERR("history add failed.");
return;
}
diff --git a/src/view/ContextView.cpp b/src/view/ContextView.cpp
index c749960..ef5d92f 100644
--- a/src/view/ContextView.cpp
+++ b/src/view/ContextView.cpp
@@ -104,9 +104,8 @@ void CContextView::m_RelatedAppSelected(Evas_Object *obj)
return;
}
- r = app_content_history_add(APP_CH_APPS, ainfo->GetAppid());
- if (r != 0) {
- _ERR("app_content_history_add failed.");
+ if (!CAppContentHistory::HistoryAdd(CAppContentHistory::TYPE_APPS, ainfo->GetAppid())) {
+ _ERR("app history failed.");
return;
}