gaurd ecore_imf functions
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 14 Dec 2010 07:05:52 +0000 (07:05 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 14 Dec 2010 07:05:52 +0000 (07:05 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@55550 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_entry.c

index 581c72b..996b38c 100644 (file)
@@ -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;