summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2016-11-22 11:05:23 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2016-11-22 11:05:23 +0900
commit281fd9231cd8eda34e35b0a68c4991483ddad776 (patch)
treee1e961eabd817617dc7b3cbd1f93d29dadcf71de
parenta0d9354be14722bbf5a4f33759b007cd3b9845fc (diff)
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
-rw-r--r--src/lib/elementary/elm_entry.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_entry.c b/src/lib/elementary/elm_entry.c
index 0af5d8cbe3..db7493c727 100644
--- a/src/lib/elementary/elm_entry.c
+++ b/src/lib/elementary/elm_entry.c
@@ -987,8 +987,6 @@ _cursor_geometry_recalc(Evas_Object *obj)
987{ 987{
988 ELM_ENTRY_DATA_GET(obj, sd); 988 ELM_ENTRY_DATA_GET(obj, sd);
989 989
990 efl_event_callback_legacy_call(obj, ELM_ENTRY_EVENT_CURSOR_CHANGED, NULL);
991
992 if (!sd->deferred_recalc_job) 990 if (!sd->deferred_recalc_job)
993 { 991 {
994 Evas_Coord cx, cy, cw, ch; 992 Evas_Coord cx, cy, cw, ch;
@@ -2393,6 +2391,9 @@ _entry_cursor_changed_signal_cb(void *data,
2393 if (elm_widget_focus_get(data)) 2391 if (elm_widget_focus_get(data))
2394 edje_object_signal_emit(sd->entry_edje, "elm,action,show,cursor", "elm"); 2392 edje_object_signal_emit(sd->entry_edje, "elm,action,show,cursor", "elm");
2395 _cursor_geometry_recalc(data); 2393 _cursor_geometry_recalc(data);
2394
2395 efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_CURSOR_CHANGED, NULL);
2396
2396 if (_elm_config->atspi_mode) 2397 if (_elm_config->atspi_mode)
2397 elm_interface_atspi_accessible_event_emit(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, data, ELM_INTERFACE_ATSPI_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED, NULL); 2398 elm_interface_atspi_accessible_event_emit(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, data, ELM_INTERFACE_ATSPI_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED, NULL);
2398} 2399}