edje: remove MULTILINE hints from input_hint_get function 35/137135/1
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 4 Jul 2017 11:28:28 +0000 (20:28 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 4 Jul 2017 12:20:44 +0000 (12:20 +0000)
Edje_Input_Hints does not have MULTILINE hints.
Also, set/get result should be kept.

@tizen_fix

Change-Id: Ifd96823e7b00f8492665bcec54cb5feb8a206bc0
(cherry picked from commit e7ee5c1a230c41d76bed6159dcff165b279785f1)

src/lib/edje/edje_entry.c

index a1241ca..561e3a2 100644 (file)
@@ -4067,14 +4067,25 @@ Edje_Input_Hints
 _edje_entry_input_hint_get(const Edje_Real_Part *rp)
 {
    Entry *en;
+   /* TIZEN_ONLY(20170704): remove MULTILINE hints from input_hint_get function */
+   Ecore_IMF_Input_Hints ret;
+   /* END */
 
    if ((rp->type != EDJE_RP_TYPE_TEXT) ||
        (!rp->typedata.text)) return EDJE_INPUT_HINT_NONE;
    en = rp->typedata.text->entry_data;
    if (!en) return EDJE_INPUT_HINT_NONE;
 #ifdef HAVE_ECORE_IMF
+   /* TIZEN_ONLY(20170704): remove MULTILINE hints from input_hint_get function
    if (en->imf_context)
      return (Edje_Input_Hints)ecore_imf_context_input_hint_get(en->imf_context);
+    */
+   if (en->imf_context)
+     {
+        ret = ecore_imf_context_input_hint_get(en->imf_context) & ~ECORE_IMF_INPUT_HINT_MULTILINE;
+        return (Edje_Input_Hints)ret;
+     }
+   /* END */
 #endif
 
    return EDJE_INPUT_HINT_NONE;