From: Jihoon Kim <imfine98@gmail.com>
authorJihoon Kim <imfine98@gmail.com>
Mon, 25 Apr 2011 05:36:58 +0000 (05:36 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 25 Apr 2011 05:36:58 +0000 (05:36 +0000)
commitac336223540c06858b29590d220ae8fc0a282f04
treec928f727b816c74617fa348af74341ff1e4b694b
parent15d22f9c47b41be175753d46718e8b91b29fa867
From: Jihoon Kim <imfine98@gmail.com>
Subject: [E-devel] [PATCH] bug fix in : "cursor, changed" signal is
not emitted when the content of entry is removed

I found the bug that "cursor,changed" signal is not emitted when the content
of entry is removed.

Let's assume the cursor position is equal to 10.
In this situation, elm_entry_entry_set(en, "") is called.
The content of entry is removed and the cursor position is equal to 0, but
"cursor,changed" signal is not emitted.

This patch is for solving this problem.

In addition, it lets the input method module know the cursor position using
ecore_imf_context_cursor_position_set API
in case that _edje_entry_set_cursor_{start, end} is called.

(Raster: actually it should always emit changed. not check pos at all.
technically pos could be the same BUT cursor moved on screen due to a
reformat). :)

SVN revision: 58886
legacy/edje/src/lib/edje_entry.c