GtkIMContext::set_surrounding

void set_surrounding(string text, int len, int cursor_index);

See also: delete_surrounding() , get_surrounding