diff options
-rw-r--r-- | src/layout/AppsBaseLayout.cpp | 11 | ||||
-rw-r--r-- | src/view/ContextView.cpp | 5 |
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; } |