From: Jihoon Kim <imfine98@gmail.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 25 Apr 2011 05:36:58 +0000 (05:36 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 25 Apr 2011 05:36:58 +0000 (05:36 +0000)
commita6be033571b6c714c527eabb893fbf8f36763de0
treeee085d87cba68fe282b4f709a53581a61bdedb39
parent3968aae743ddd3dff5de0f5e03efcc86ebfc5ca6
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). :)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@58886 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/edje_entry.c