From 6e6307c3a13c823e1634cc5fbc8f3ba8c8be65ad Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 23 May 2018 14:41:04 +0900 Subject: [PATCH] demo: use elm_entry API for prediction hint Change-Id: Ie2a4960c9ec244671d05e8aeb63af82e7674a8d9 Signed-off-by: Jihoon Kim --- ism/demos/isf_prediction_hint_efl.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/ism/demos/isf_prediction_hint_efl.cpp b/ism/demos/isf_prediction_hint_efl.cpp index b819122..507dcb6 100644 --- a/ism/demos/isf_prediction_hint_efl.cpp +++ b/ism/demos/isf_prediction_hint_efl.cpp @@ -62,16 +62,12 @@ static Evas_Object *_create_ef_layout (Evas_Object *parent, const char *label, c elm_entry_input_hint_set (en, input_hints); } - Ecore_IMF_Context *ic = NULL; - ic = (Ecore_IMF_Context *)elm_entry_imf_context_get (en); - if (ic) { - if (prediction_hint) - ecore_imf_context_prediction_hint_set (ic, prediction_hint); - - ecore_imf_context_prediction_hint_hash_set (ic, "appid", "isf-demo-efl"); - if (res_id) - ecore_imf_context_prediction_hint_hash_set (ic, "res_id", res_id); - } + if (prediction_hint) + elm_entry_prediction_hint_set (en, prediction_hint); + + elm_entry_prediction_hint_hash_set (en, "appid", "isf-demo-efl"); + if (res_id) + elm_entry_prediction_hint_hash_set (en, "res_id", res_id); return ef; } -- 2.7.4