Input Method "surrounding" Events
im_retrieve_surrounding are no-ops in vte.cc
Whilst suggestions (
im_retrieve_surrounding) probably aren't that important for vte
im_delete_surrounding is as ideally we want backspace to work!
Simply given an offset (< 0 = before cursor, >= 0 after it) and a number
I'm wondering what the best way to handle that is:
- Feed the widget fake events?
feed_childan appropriate number of left/right & backspace/delete codes?
- Something else?
Fairly poorly documented, we're expected to call
gtk_im_context_set_surrounding in response with a piece of text and the position of the cursor within it
GtkTextView simply uses the active line for this which I guess works for us, but I failed to find a "get_cusor_row" so not sure how to proceed with that one