From 8ff6c929ed06801bfdb0438e5b7133e52b34ea72 Mon Sep 17 00:00:00 2001 From: caro Date: Tue, 14 Dec 2010 07:05:52 +0000 Subject: [PATCH] gaurd ecore_imf functions git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@55550 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_entry.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index 581c72b..996b38c 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -1881,7 +1881,9 @@ _edje_entry_real_part_shutdown(Edje_Real_Part *rp) rp->entry_data = NULL; _sel_clear(en->cursor, rp->object, en); _anchors_clear(en->cursor, rp->object, en); +#ifdef HAVE_ECORE_IMF _preedit_clear(en); +#endif rp->edje->subobjs = eina_list_remove(rp->edje->subobjs, en->cursor_bg); rp->edje->subobjs = eina_list_remove(rp->edje->subobjs, en->cursor_fg); evas_object_del(en->cursor_bg); @@ -2636,9 +2638,11 @@ _edje_entry_imf_event_commit_cb(void *data, int type __UNUSED__, void *event) else evas_textblock_cursor_copy(en->cursor, tc); +#ifdef HAVE_ECORE_IMF /* delete preedit characters */ _preedit_del(en); _preedit_clear(en); +#endif if (evas_textblock_cursor_compare(en->cursor, tc)) cursor_move = EINA_TRUE; -- 2.7.4