Edje entry: Fixed a selection bug with IMF enabled and fix a couple of indentation issues, and a saftey check.

Patch by Jihoon Kim.

SVN revision: 52165
This commit is contained in:
Tom Hacohen 2010-09-12 08:15:35 +00:00
parent 1970f8dd6c
commit 527a3f3579
1 changed files with 7 additions and 14 deletions

View File

@ -95,7 +95,7 @@ _edje_entry_focus_in_cb(void *data, Evas_Object *o __UNUSED__, const char *emiss
if (!rp || !rp->entry_data || !rp->edje || !rp->edje->obj) return;
en = rp->entry_data;
if (!en->imf_context) return;
if (!en || !en->imf_context) return;
if (evas_object_focus_get(rp->edje->obj))
{
@ -2590,18 +2590,11 @@ _edje_entry_imf_event_changed_cb(void *data, int type __UNUSED__, void *event)
}
en->comp_len = length;
_sel_clear(en->cursor, rp->object, en);
_sel_enable(en->cursor, rp->object, en);
_sel_start(en->cursor, rp->object, en);
en->have_composition = EINA_TRUE;
//xx
evas_object_textblock_text_markup_prepend(en->cursor, preedit_string);
_sel_extend(en->cursor, rp->object, en);
_curs_update_from_curs(en->cursor, rp->object, en);
_anchors_get(en->cursor, rp->object, en);
_edje_emit(rp->edje, "entry,changed", rp->part->name);