From: SubodhKumar Date: Sat, 18 Feb 2017 13:43:44 +0000 (+0530) Subject: elm_entry: Set the type to cbhm when dbus is initiated. X-Git-Tag: accepted/tizen/common/20170331.152656~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52b1c6d632096b4ad35ad1127cece256f0b648f4;p=platform%2Fupstream%2Felementary.git elm_entry: Set the type to cbhm when dbus is initiated. Issue: By the time entry got focused, job has not initiated the dbus causing not setting type to cbhm. Change-Id: I25282eeb2280b7bfde642651b66b2bd6a951c834 --- diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 3fef72f..96d106f 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -202,6 +202,14 @@ _init_eldbus_job(Evas_Object *obj) ELM_ENTRY_DATA_GET(obj, sd); _cbhm_eldbus_init(obj); + /* If entry got focused by the time job has not initiated the dbus */ + if (elm_widget_focus_get(obj)) + { + if (sd->cnp_mode != ELM_CNP_MODE_MARKUP) + eldbus_proxy_call(sd->cbhm_proxy, "CbhmSetInputTextType", NULL, NULL, -1, "s", "text"); + else + eldbus_proxy_call(sd->cbhm_proxy, "CbhmSetInputTextType", NULL, NULL, -1, "s", "image"); + } sd->cbhm_init_done = EINA_TRUE; sd->cbhm_init_job = NULL; }