Add elm_entry_imf_context_reset.
authorjihoon <jihoon@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Feb 2012 11:43:58 +0000 (11:43 +0000)
committerjihoon <jihoon@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Feb 2012 11:43:58 +0000 (11:43 +0000)
Reset the input method context of the entry if needed.
This can be necessary in the case where modifying the buffer would confuse
on-going input method behavior.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67882 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_entry.c
src/lib/elm_entry.h

index a913a83..4da0bdd 100644 (file)
@@ -3555,6 +3555,16 @@ elm_entry_autocapital_type_get(Evas_Object *obj)
 }
 
 EAPI void
+elm_entry_imf_context_reset(Evas_Object *obj)
+{
+   ELM_CHECK_WIDTYPE(obj, widtype);
+   Widget_Data *wd = elm_widget_data_get(obj);
+   if (!wd) return;
+
+   edje_object_part_text_imf_context_reset(wd->ent, "elm.text");
+}
+
+EAPI void
 elm_entry_input_panel_enabled_set(Evas_Object *obj, Eina_Bool enabled)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
@@ -3595,3 +3605,5 @@ elm_entry_input_panel_hide(Evas_Object *obj)
    edje_object_part_text_input_panel_hide(wd->ent, "elm.text");
 }
 
+
+
index e59deec..4225859 100644 (file)
@@ -1132,6 +1132,14 @@ EAPI void                   elm_entry_input_panel_show(Evas_Object *obj);
  */
 EAPI void                   elm_entry_input_panel_hide(Evas_Object *obj);
 
+/**
+ * Reset the input method context of the entry if needed. 
+ *
+ * This can be necessary in the case where modifying the buffer would confuse on-going input method behavior
+ * @param obj The entry object
+ */
+EAPI void                   elm_entry_imf_context_reset(Evas_Object *obj);
+
 /* pre-made filters for entries */
 
 /**