text: Fix set_surrounding_text request
authorJan Arne Petersen <jpetersen@openismus.com>
Sun, 9 Sep 2012 21:08:40 +0000 (23:08 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 12 Sep 2012 20:38:00 +0000 (16:38 -0400)
commitcb08f4d844e9b85744c54a4d6e9179f44a27e3fc
tree5bfc301a1bea6ebf950b7be440821fbc15af7ebe
parentc1fbcb7c38f026cca8b14c1316a311c59a8d73e9
text: Fix set_surrounding_text request

Add cursor and anchor positions as arguments to the set_surrounding_text
request. The cursor and anchor positions are relative to the surrounded
text, so it does not make sense to have that separate. Remove the
separate set_cursor_index and set_selected_text requests. Also update
the corresponding event in input-method-context and add support for it
in the weston example keyboard.

Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
clients/editor.c
clients/keyboard.c
protocol/text.xml
src/text-backend.c