From 6a72a15671c945804fefcf2c78abd14587de0d01 Mon Sep 17 00:00:00 2001 From: woohyun Date: Wed, 10 Oct 2012 09:15:16 +0000 Subject: [PATCH] edje/edje_entry : Add more tags(preedit_sub1~4) for supporting a variety of preediting states. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@77731 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- ChangeLog | 4 ++++ NEWS | 1 + src/lib/edje_entry.c | 28 ++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6f289f8..b2056f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -649,3 +649,7 @@ 2012-09-27 Flavio Ceolin * edje_codegen: adding support for draggable + +2012-10-10 + + * edje_entry: Add more tags(preedit_sub1~4) for a variety of preediting states. diff --git a/NEWS b/NEWS index ef4a070..6ce0072 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ Additions: * Add nested parts support. * Add EDJE_INPUT_PANEL_RETURN_KEY_TYPE_SIGNIN * Add edje_codegen - A code generator to working with edje files. + * Add more tags(preedit_sub1~4) for a variety of preediting states. Improvements: * Check the number of parameter for image in edc. diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index 9fc5201..eec75ca 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -3751,6 +3751,34 @@ _edje_entry_imf_event_preedit_changed_cb(void *data, Ecore_IMF_Context *ctx __UN attr->end_index - attr->start_index); eina_strbuf_append(buf, ""); } + else if (attr->preedit_type == ECORE_IMF_PREEDIT_TYPE_SUB4) + { + eina_strbuf_append(buf, ""); + eina_strbuf_append_n(buf, preedit_string + attr->start_index, + attr->end_index - attr->start_index); + eina_strbuf_append(buf, ""); + } + else if (attr->preedit_type == ECORE_IMF_PREEDIT_TYPE_SUB5) + { + eina_strbuf_append(buf, ""); + eina_strbuf_append_n(buf, preedit_string + attr->start_index, + attr->end_index - attr->start_index); + eina_strbuf_append(buf, ""); + } + else if (attr->preedit_type == ECORE_IMF_PREEDIT_TYPE_SUB6) + { + eina_strbuf_append(buf, ""); + eina_strbuf_append_n(buf, preedit_string + attr->start_index, + attr->end_index - attr->start_index); + eina_strbuf_append(buf, ""); + } + else if (attr->preedit_type == ECORE_IMF_PREEDIT_TYPE_SUB7) + { + eina_strbuf_append(buf, ""); + eina_strbuf_append_n(buf, preedit_string + attr->start_index, + attr->end_index - attr->start_index); + eina_strbuf_append(buf, ""); + } } } else -- 2.7.4