forked from enlightenment/efl
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:
parent
1970f8dd6c
commit
527a3f3579
|
@ -85,7 +85,7 @@ struct _Anchor
|
|||
};
|
||||
|
||||
#ifdef HAVE_ECORE_IMF
|
||||
static void
|
||||
static void
|
||||
_edje_entry_focus_in_cb(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
|
||||
{
|
||||
Edje_Real_Part *rp;
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -104,7 +104,7 @@ _edje_entry_focus_in_cb(void *data, Evas_Object *o __UNUSED__, const char *emiss
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
static void
|
||||
_edje_entry_focus_out_cb(void *data, Evas_Object *o __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
|
||||
{
|
||||
Edje_Real_Part *rp;
|
||||
|
@ -149,7 +149,7 @@ _edje_focus_in_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v
|
|||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
static void
|
||||
_edje_focus_out_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
Edje *ed = data;
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue