elementary entry: fix to call "cursor,changed" callback when only cursor is changed

Summary:
"cursor,changed" smart callback should be called when only the main cusor's
position is changed. But, It was called when elm_layout_sizing_eval() is called
for elm_entry.

@fix

Test Plan: N/A

Reviewers: raster, cedric, woohyun, herdsman

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D4419
This commit is contained in:
Youngbok Shin 2016-11-22 11:05:23 +09:00 committed by WooHyun Jung
parent a0d9354be1
commit 281fd9231c
1 changed files with 3 additions and 2 deletions

View File

@ -987,8 +987,6 @@ _cursor_geometry_recalc(Evas_Object *obj)
{
ELM_ENTRY_DATA_GET(obj, sd);
efl_event_callback_legacy_call(obj, ELM_ENTRY_EVENT_CURSOR_CHANGED, NULL);
if (!sd->deferred_recalc_job)
{
Evas_Coord cx, cy, cw, ch;
@ -2393,6 +2391,9 @@ _entry_cursor_changed_signal_cb(void *data,
if (elm_widget_focus_get(data))
edje_object_signal_emit(sd->entry_edje, "elm,action,show,cursor", "elm");
_cursor_geometry_recalc(data);
efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_CURSOR_CHANGED, NULL);
if (_elm_config->atspi_mode)
elm_interface_atspi_accessible_event_emit(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, data, ELM_INTERFACE_ATSPI_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED, NULL);
}